Skip to content

Commit 5bcc66d

Browse files
committed
VisitIfStmt: Prune a redundant condition.
`S->isConsteval()` is evaluated at the top of this method. Likely mis-merging in #75425
1 parent 83953c7 commit 5bcc66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CoverageMappingGen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,7 @@ struct CounterCoverageMappingBuilder
20662066
GapRegionCounter = OutCount;
20672067
}
20682068

2069-
if (!S->isConsteval() && !llvm::EnableSingleByteCoverage)
2069+
if (!llvm::EnableSingleByteCoverage)
20702070
// Create Branch Region around condition.
20712071
createBranchRegion(S->getCond(), ThenCount,
20722072
subtractCounters(ParentCount, ThenCount));

0 commit comments

Comments
 (0)