aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-21 11:56:05 -0700
committeralon@honor <none@none>2010-10-21 11:56:05 -0700
commit4d9d2829c206c2456155087a3150e17fd4c8130f (patch)
treefd75ebdd9aa2e890f67e9751ded10499fffdaccb /src/analyzer.js
parent9cbeceb19e293eff976e813fe3564f0b2507e22b (diff)
support phi with >2 params
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 0f2e6b95..80860aa6 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -312,8 +312,9 @@ function analyzer(data) {
func.labels.forEach(function(label) {
label.lines.forEach(function(line) {
if (line.value && line.value.intertype == 'phi') {
- func.remarkableLabels.push(toNiceIdent(line.value.label1));
- func.remarkableLabels.push(toNiceIdent(line.value.label2));
+ for (var i = 0; i < line.value.params.length; i++) {
+ func.remarkableLabels.push(line.value.params[i].label);
+ }
func.hasPhi = true;
}
});