aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-08 17:28:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-08 17:28:52 -0700
commit541ea2f893c17470342f303fca8d9169c7f48ce9 (patch)
tree4af7365bc1dff3d637ee0bbbd2ebbc56b412aa8e /src/jsifier.js
parent8088f52fba9cbc9c8a9d89f7939bd8df7e7225df (diff)
expose branch condition to analysis; fixes ta2 bug with test_if
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index d75be5c6..3c2340ce 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -654,10 +654,10 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) {
makeFuncLineActor('branch', function(item) {
if (item.stolen) return ';'; // We will appear where we were stolen to
- if (!item.condition) {
+ if (!item.value) {
return makeBranch(item.label, item.currLabelId);
} else {
- var condition = finalizeLLVMParameter(item.condition);
+ var condition = finalizeLLVMParameter(item.value);
var labelTrue = makeBranch(item.labelTrue, item.currLabelId);
var labelFalse = makeBranch(item.labelFalse, item.currLabelId);
if (labelTrue == ';' && labelFalse == ';') return ';';