summaryrefslogtreecommitdiff
path: root/src/asm2wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r--src/asm2wasm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp
index b02b4aa52..c594e520d 100644
--- a/src/asm2wasm.cpp
+++ b/src/asm2wasm.cpp
@@ -780,6 +780,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
ret->op = relational;
ret->left = process(ast[2]);
ret->right = process(ast[3]);
+ assert(ret->left->type == ret->right->type);
ret->inputType = ret->left->type;
return ret;
}
@@ -900,6 +901,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) {
ret->op = Eq;
ret->left = process(ast[2]);
ret->right = allocator.alloc<Const>()->set(Literal(0));
+ assert(ret->left->type == ret->right->type);
ret->inputType = ret->left->type;
return ret;
}