Skip to content

Commit a79af80

Browse files
authored
Refactor condition in SimplifyCFG.cpp
1 parent 27285df commit a79af80

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
@@ -3393,7 +3393,7 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(BranchInst *BI,
33933393
// Similarly strip attributes that maybe dependent on condition we are
33943394
// hoisting above.
33953395
for (auto &I : make_early_inc_range(*ThenBB)) {
3396-
if (!SpeculatedStoreValue || &I != SpeculatedStore && !isa<CallBase>(&I)) {
3396+
if ((!SpeculatedStoreValue || &I != SpeculatedStore) && !isa<CallBase>(&I)) {
33973397
I.setDebugLoc(DebugLoc::getDropped());
33983398
}
33993399
I.dropUBImplyingAttrsAndMetadata();

0 commit comments

Comments
 (0)