Skip to content

Commit b053a9c

Browse files
authored
Rollup merge of rust-lang#118941 - krasimirgg:llvm-cov, r=nikic
llvm-wrapper: adapt for LLVM API changes Adapt for llvm/llvm-project@8ecbb04. r? `@nikic` `@rustbot` label: +llvm-main
2 parents a7690a3 + 0a285e8 commit b053a9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ 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)
143+
coverage::CounterMappingRegion::MCDCParameters{},
144+
#endif
142145
Region.FileID, Region.ExpandedFileID,
143146
Region.LineStart, Region.ColumnStart, Region.LineEnd, Region.ColumnEnd,
144147
fromRust(Region.Kind));

0 commit comments

Comments
 (0)