aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-14 15:31:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-14 15:31:28 -0700
commit2ad92403e512be071ea928c75fda2cefd1848edf (patch)
tree179193e1d3f8f0377e32f036d0fa380af2b5b22a /src/analyzer.js
parent0cb7298c4d5281b1d4d896bd878346fa05cabdfa (diff)
allow nonexistent phis in another location + add test
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 4336fd00..4bf2255e 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -1287,7 +1287,7 @@ function analyzer(data, sidePass) {
if (phi.intertype == 'phi') {
for (var i = 0; i < phi.params.length; i++) {
var param = phi.params[i];
- assert(param.label);
+ if (!param.label) warn('phi refers to nonexistent label on line ' + phi.lineNum);
var sourceLabelId = getActualLabelId(param.label);
if (sourceLabelId) {
var sourceLabel = func.labelsDict[sourceLabelId];