[clang] [llvm] [Coverage] Introduce "partial fold" on BranchRegion (PR #112694)

Jessica Paquette via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 17 23:57:32 PDT 2024


================
@@ -125,7 +125,7 @@ json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) {
 json::Array renderBranchRegions(ArrayRef<coverage::CountedRegion> Regions) {
   json::Array RegionArray;
   for (const auto &Region : Regions)
-    if (!Region.Folded)
+    if (!Region.TrueFolded || !Region.FalseFolded)
----------------
ornata wrote:

replace with a helper function? e.g. Region.isFolded()

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


More information about the cfe-commits mailing list