We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3153ab8 commit 289325dCopy full SHA for 289325d
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -592,7 +592,7 @@ struct ConstantComparesGatherer {
592
/// Try to set the current value used for the comparison, it succeeds only if
593
/// it wasn't set before or if the new value is the same as the old one
594
bool setValueOnce(Value *NewVal) {
595
- if (IgnoreFirstMatch && NewVal) {
+ if (IgnoreFirstMatch) {
596
IgnoreFirstMatch = false;
597
return false;
598
}
@@ -601,7 +601,7 @@ struct ConstantComparesGatherer {
601
602
603
CompValue = NewVal;
604
- return (CompValue != nullptr);
+ return true;
605
606
607
/// Try to match Instruction "I" as a comparison against a constant and
0 commit comments