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; }