diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-28 11:00:18 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 17:31:35 -0700 |
commit | 05de5e01b14562c438bec2d90855326ed8091d92 (patch) | |
tree | 0fbde6556ed1a26af5a54badc71485a49916162e | |
parent | e578be3b375c26c0453070cedf89c42e3ac314a8 (diff) |
fix intertype of comparisons' last parameter
-rw-r--r-- | src/intertyper.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 07f2020c..baf4c93e 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -850,6 +850,7 @@ function intertyper(lines, sidePass, baseLineNums) { // TODO: also remove 2nd param? } else if (item.op in LLVM.COMPS) { item.type = 'i1'; + if (item.params[1].intertype === 'type') item.params[1].intertype = 'value'; // parsed as type, but comparisons have just values there } if (USE_TYPED_ARRAYS == 2) { // Some specific corrections, since 'i64' is special |