[clang] [clang][coverage] fixing "if constexpr" and "if consteval" coverage report (PR #77214)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 7 02:20:20 PST 2024


================
@@ -1631,8 +1631,10 @@ class CompoundStmt final
                               SourceLocation RB);
 
   // Build an empty compound statement with a location.
-  explicit CompoundStmt(SourceLocation Loc)
-      : Stmt(CompoundStmtClass), LBraceLoc(Loc), RBraceLoc(Loc) {
+  explicit CompoundStmt(SourceLocation Loc) : CompoundStmt(Loc, Loc) {}
----------------
cor3ntin wrote:

Hum, never mind, I misread the diff

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


More information about the cfe-commits mailing list