Skip to content

Commit 8dffa39

Browse files
authored
Rollup merge of #121031 - TimNN:lh-fix-20240213, r=durin42
RustWrapper: adapt for coverage mapping API changes There've been a number of changes to the coverage mapping API today, but the end result is that specifying the MCDC parameters is now optional (they've been moved to the end of the argument list and now default to `std::monostate`). `@rustbot` label: +llvm-main r? `@durin42`
2 parents cc171de + 14ec3b6 commit 8dffa39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
139139
RustMappingRegions, NumMappingRegions)) {
140140
MappingRegions.emplace_back(
141141
fromRust(Region.Count), fromRust(Region.FalseCount),
142-
#if LLVM_VERSION_GE(18, 0)
142+
#if LLVM_VERSION_GE(18, 0) && LLVM_VERSION_LT(19, 0)
143143
coverage::CounterMappingRegion::MCDCParameters{},
144144
#endif
145145
Region.FileID, Region.ExpandedFileID,

0 commit comments

Comments
 (0)