Skip to content

Commit

Permalink
RustWrapper: adapt for coverage mapping API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Feb 13, 2024
1 parent bc1b9e0 commit 14ec3b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
RustMappingRegions, NumMappingRegions)) {
MappingRegions.emplace_back(
fromRust(Region.Count), fromRust(Region.FalseCount),
#if LLVM_VERSION_GE(18, 0)
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
coverage::CounterMappingRegion::MCDCParameters{},
#endif
Region.FileID, Region.ExpandedFileID,
Expand Down

0 comments on commit 14ec3b6

Please sign in to comment.