diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 14:34:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 14:34:56 -0800 |
commit | 4802cc7c0b56ac587e1dac849badeb11763ef64f (patch) | |
tree | 2ab48e459337113c81a09a800a6e575b46b507e6 /src/parseTools.js | |
parent | f5ae1c668553b56efd7c336b36c1d12c4fb07229 (diff) |
fix comparison in indirectbr for asm
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index c02bc62a..e3b7ed3c 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1793,7 +1793,7 @@ function finalizeLLVMParameter(param, noIndexizeFunctions) { function makeComparison(a, b, type) { if (!isIllegalType(type)) { - return a + ' == ' + b; + return asmCoercion(a, type) + ' == ' + asmCoercion(b, type); } else { assert(type == 'i64'); return asmCoercion(a + '$0', 'i32') + ' == ' + asmCoercion(b + '$0', 'i32') + ' & ' + |