We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02fff93 commit a7c26aaCopy full SHA for a7c26aa
compiler-rt/test/profile/instrprof-merging-2.cpp
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -851,7 +851,7 @@ Error CoverageMapping::loadFunctionRecord(
851
// won't (in which case we don't unintuitively report functions as uncovered
852
// when they have non-zero counts in the profile).
853
if (Record.MappingRegions.size() == 1 &&
854
- Record.MappingRegions[0].Count.isZero())
+ Record.MappingRegions[0].Count.isZero() && Counts[0] > 0)
855
return Error::success();
856
857
MCDCDecisionRecorder MCDCDecisions;
0 commit comments