diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 17:02:56 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 17:02:56 -0700 |
commit | b8b69e896b18efbe553bf1c01e4eb3acbfb909f1 (patch) | |
tree | 9f52ca49356d939e40a2c4e3809ed309d5d5dc4e /src/asm2wasm.cpp | |
parent | dce3791b402cc1e49da000cfe918bb21e81b4a6a (diff) | |
download | binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.gz binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.tar.bz2 binaryen-b8b69e896b18efbe553bf1c01e4eb3acbfb909f1.zip |
fix logical not
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r-- | src/asm2wasm.cpp | 2 |
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; } |