[llvm] [Coverage] Rework Decision/Expansion/Branch (PR #78969)

Jessica Paquette via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 06:18:54 PST 2024


================
@@ -662,23 +724,39 @@ Error CoverageMapping::loadFunctionRecord(
     }
     Function.pushRegion(Region, *ExecutionCount, *AltExecutionCount);
 
+    if (Region.Kind == CounterMappingRegion::ExpansionRegion) {
+      for (auto &Decision : reverse(Decisions)) {
----------------
ornata wrote:

would it make sense to use something like `any_of` here?

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


More information about the llvm-commits mailing list