From 057b100a683829dc1d9d332266a0bcbfdf565351 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 13 Mar 2019 19:20:29 -0300 Subject: [PATCH] Assert on empty Emit --- src/sirit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sirit.cpp b/src/sirit.cpp index 84e752b..10f5910 100644 --- a/src/sirit.cpp +++ b/src/sirit.cpp @@ -99,6 +99,7 @@ void Module::AddExecutionMode(Id entry_point, spv::ExecutionMode mode, } Id Module::Emit(Id op) { + assert(op != nullptr); code.push_back(op); return op; }