[llvm-branch-commits] [clang] [llvm] [Coverage][Single] Enable Branch coverage for IfStmt (PR #113111)

Jessica Paquette via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 22 20:39:12 PST 2024


================
@@ -915,10 +914,7 @@ void CodeGenFunction::EmitIfStmt(const IfStmt &S) {
 
   // Emit the 'then' code.
   EmitBlock(ThenBlock);
-  if (llvm::EnableSingleByteCoverage)
-    incrementProfileCounter(S.getThen());
-  else
-    incrementProfileCounter(&S);
+  incrementProfileCounter(false, &S);
----------------
ornata wrote:

same here

https://github.com/llvm/llvm-project/pull/113111


More information about the llvm-branch-commits mailing list