Skip to content

Commit 706cca7

Browse files
committed
remove some phi warnings by default
1 parent 7841ffa commit 706cca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyzer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ function analyzer(data, sidePass) {
12371237
if (phi.intertype == 'phi') {
12381238
for (var i = 0; i < phi.params.length; i++) {
12391239
phi.params[i].label = func.labelIds[phi.params[i].label];
1240-
if (!phi.params[i].label) warn('phi refers to nonexistent label on line ' + phi.lineNum);
1240+
if (VERBOSE && !phi.params[i].label) warn('phi refers to nonexistent label on line ' + phi.lineNum);
12411241
}
12421242
}
12431243
});
@@ -1316,7 +1316,7 @@ function analyzer(data, sidePass) {
13161316
if (phi.intertype == 'phi') {
13171317
for (var i = 0; i < phi.params.length; i++) {
13181318
var param = phi.params[i];
1319-
if (!param.label) warn('phi refers to nonexistent label on line ' + phi.lineNum);
1319+
if (VERBOSE && !param.label) warn('phi refers to nonexistent label on line ' + phi.lineNum);
13201320
var sourceLabelId = getActualLabelId(param.label);
13211321
if (sourceLabelId) {
13221322
var sourceLabel = func.labelsDict[sourceLabelId];

0 commit comments

Comments
 (0)