[llvm] [Coverage] Move SingleByteCoverage out of CountedRegion (PR #110966)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 17:12:20 PDT 2024
================
@@ -1503,7 +1514,8 @@ CoverageData CoverageMapping::getCoverageForExpansion(
LLVM_DEBUG(dbgs() << "Emitting segments for expansion of file "
<< Expansion.FileID << "\n");
- ExpansionCoverage.Segments = SegmentBuilder::buildSegments(Regions);
+ ExpansionCoverage.Segments =
+ SegmentBuilder::buildSegments(Regions, *SingleByteCoverage);
----------------
ellishg wrote:
Again, this will crash if `Expansion.Function.CountedRegions` is empty.
https://github.com/llvm/llvm-project/pull/110966
More information about the llvm-commits
mailing list