Assert on empty Emit
This commit is contained in:
parent
1c06f8530e
commit
057b100a68
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue