summaryrefslogtreecommitdiff
path: root/src/asm2wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-30 17:02:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-30 17:02:56 -0700
commitb8b69e896b18efbe553bf1c01e4eb3acbfb909f1 (patch)
tree9f52ca49356d939e40a2c4e3809ed309d5d5dc4e /src/asm2wasm.cpp
parentdce3791b402cc1e49da000cfe918bb21e81b4a6a (diff)
downloadbinaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.gz
binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.bz2
binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.zip
fix logical not
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;
}