aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sirit.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-03-13 19:20:29 -0300
committerReinUsesLisp <[email protected]>2019-03-13 19:20:29 -0300
commit057b100a683829dc1d9d332266a0bcbfdf565351 (patch)
tree55397591cd3691ccdda36537e61a548bc66c4f58 /src/sirit.cpp
parent1c06f8530e3e682cbff4b377b4636c53217565ae (diff)
downloadsirit-057b100a683829dc1d9d332266a0bcbfdf565351.tar.gz
sirit-057b100a683829dc1d9d332266a0bcbfdf565351.zip
Assert on empty Emit
Diffstat (limited to 'src/sirit.cpp')
-rw-r--r--src/sirit.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}