aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-08-24 17:53:20 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-08-24 17:53:20 -0700
commitaab3e76b94c09c384e45a98dbb8a95b7b94ca838 (patch)
tree0e4d87c88e6a06db1c07b414852c6c50f8907368 /src
parent0c2e620f5ef30403666f5091766586910ad7db64 (diff)
check for additional stack allocations and varargs in the whole function, not just the first block. fixes #544
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 163ff4a8..9bf93c86 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -1391,6 +1391,9 @@ function analyzer(data, sidePass) {
// Allocas
var finishedInitial = false;
+
+ lines = func.lines; // We need to consider all the function lines now, not just the first label
+
for (var i = 0; i < lines.length; i++) {
var item = lines[i];
if (!item.assignTo || item.intertype != 'alloca' || !isNumber(item.allocatedNum)) {