diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-04-26 08:26:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-04-26 08:26:25 -0700 |
commit | 7dba1a416e3231a8b1a7b6dfd1c56254572cccc7 (patch) | |
tree | fc388b16ef2e23a23960594805fb99efda5b6de6 /src | |
parent | 10c721e022628c19f2148dc09346b73f7d32f6f5 (diff) | |
parent | ebe6abb17121bdb16aae3f0f8b63de054506061e (diff) |
Merge branch 'master' of github.com:kripken/emscripten
Diffstat (limited to 'src')
-rw-r--r-- | src/analyzer.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 06fff03c..1b438db4 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -834,7 +834,7 @@ function analyzer(data) { return ret; } - if (mustReturn) return makeLoop(); + if (canReturn) return makeLoop(); // === handle multiple branches from the entry with a 'multiple' === // @@ -886,12 +886,7 @@ function analyzer(data) { if (handlingNow.length == 0) { // Spaghetti - cannot even find a single label to do before the rest. What a mess. - // But if there is looping, perhaps we can use that to simplify matters? - if (canReturn) { - return makeLoop(); - } else { - throw "Spaghetti encountered in relooping."; - } + throw "Spaghetti encountered in relooping."; } // This is a 'multiple' |