mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-29 09:04:18 +01:00
Assert on empty Emit
This commit is contained in:
parent
1c06f8530e
commit
057b100a68
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user