Skip to content

Commit 6570adc

Browse files
dtcxzywgithub-actions[bot]
authored andcommitted
Automerge: [NFC][SimplifyCFG] Fix a return value in ConstantComparesGatherer (#155154)
`ICI->getOperand(0)` is non-null.
2 parents 50cea72 + feac561 commit 6570adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ struct ConstantComparesGatherer {
712712

713713
UsedICmps++;
714714
Vals.push_back(C);
715-
return ICI->getOperand(0);
715+
return true;
716716
}
717717

718718
// If we have "x ult 3", for example, then we can add 0,1,2 to the set.

0 commit comments

Comments
 (0)