summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm-binary.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 2fad499fe..571c878c4 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1321,10 +1321,12 @@ public:
void visitGetLocal(GetLocal *curr) {
if (debug) std::cerr << "zz node: GetLocal " << pos << std::endl;
curr->name = mappedLocals[getLEB128()];
+ assert(curr->name.is());
}
void visitSetLocal(SetLocal *curr) {
if (debug) std::cerr << "zz node: SetLocal" << std::endl;
curr->name = mappedLocals[getLEB128()];
+ assert(curr->name.is());
readExpression(curr->value);
}