Assert on empty Emit

This commit is contained in:
ReinUsesLisp 2019-03-13 19:20:29 -03:00
parent 1c06f8530e
commit 057b100a68

View file

@ -99,6 +99,7 @@ void Module::AddExecutionMode(Id entry_point, spv::ExecutionMode mode,
} }
Id Module::Emit(Id op) { Id Module::Emit(Id op) {
assert(op != nullptr);
code.push_back(op); code.push_back(op);
return op; return op;
} }