From 5bcc66dc009893c55aefdcd16a0ca2dad315481b Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 15 Oct 2024 21:14:45 +0900 Subject: VisitIfStmt: Prune a redundant condition. `S->isConsteval()` is evaluated at the top of this method. Likely mis-merging in #75425 --- clang/lib/CodeGen/CoverageMappingGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp') diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 0701583..577a0f5 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -2066,7 +2066,7 @@ struct CounterCoverageMappingBuilder GapRegionCounter = OutCount; } - if (!S->isConsteval() && !llvm::EnableSingleByteCoverage) + if (!llvm::EnableSingleByteCoverage) // Create Branch Region around condition. createBranchRegion(S->getCond(), ThenCount, subtractCounters(ParentCount, ThenCount)); -- cgit v1.1