Skip to content

Commit 1564424

Browse files
committed
Confirm that all Decisions have not been resolved.
1 parent 5d9de08 commit 1564424

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ Error CoverageMapping::loadFunctionRecord(
785785
branch_found:;
786786
}
787787

788+
assert(Decisions.empty() && "All Decisions have not been resolved");
789+
788790
// Don't create records for (filenames, function) pairs we've already seen.
789791
auto FilenamesHash = hash_combine_range(Record.Filenames.begin(),
790792
Record.Filenames.end());

0 commit comments

Comments
 (0)