Skip to content

Commit feac561

Browse files
authored
[NFC][SimplifyCFG] Fix a return value in ConstantComparesGatherer (#155154)
`ICI->getOperand(0)` is non-null.
1 parent 003cbbd commit feac561

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)