diff options
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 98460492..0f90ade1 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -706,6 +706,9 @@ function JSify(data, functionsOnly, givenFunctions) { } }); } + makeFuncLineActor('noop', function(item) { + return ';'; + }); makeFuncLineActor('var', function(item) { // assigns into phis become simple vars when MICRO_OPTS return 'var ' + item.ident + ';'; }); @@ -953,7 +956,7 @@ function JSify(data, functionsOnly, givenFunctions) { return ret + item.ident + '.f' + item.indexes[0][0].text + ' = ' + finalizeLLVMParameter(item.value) + ', ' + item.ident + ')'; }); makeFuncLineActor('indirectbr', function(item) { - return makeBranch(finalizeLLVMParameter(item.pointer), item.currLabelId, true); + return makeBranch(finalizeLLVMParameter(item.value), item.currLabelId, true); }); makeFuncLineActor('alloca', function(item) { if (typeof item.allocatedIndex === 'number') { |