Skip to content

Commit

Permalink
Rollup merge of #118941 - krasimirgg:llvm-cov, r=nikic
Browse files Browse the repository at this point in the history
llvm-wrapper: adapt for LLVM API changes

Adapt for llvm/llvm-project@8ecbb04.

r? `@nikic`
`@rustbot` label: +llvm-main
  • Loading branch information
matthiaskrgr authored Dec 18, 2023
2 parents a7690a3 + 0a285e8 commit b053a9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
RustMappingRegions, NumMappingRegions)) {
MappingRegions.emplace_back(
fromRust(Region.Count), fromRust(Region.FalseCount),
#if LLVM_VERSION_GE(18, 0)
coverage::CounterMappingRegion::MCDCParameters{},
#endif
Region.FileID, Region.ExpandedFileID,
Region.LineStart, Region.ColumnStart, Region.LineEnd, Region.ColumnEnd,
fromRust(Region.Kind));
Expand Down

0 comments on commit b053a9c

Please sign in to comment.