Skip to content

Commit 9addf06

Browse files
committed
Correctly mark parameter RustMappingRegions as pointer-to-const
The regions don't need to be mutable because we pass a copy of them to LLVM instead, and this matches the `*const` in the Rust-side signature.
1 parent 7cab196 commit 9addf06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer(
121121
unsigned NumVirtualFileMappingIDs,
122122
const LLVMRustCounterExpression *RustExpressions,
123123
unsigned NumExpressions,
124-
LLVMRustCounterMappingRegion *RustMappingRegions,
124+
const LLVMRustCounterMappingRegion *RustMappingRegions,
125125
unsigned NumMappingRegions,
126126
RustStringRef BufferOut) {
127127
// Convert from FFI representation to LLVM representation.

0 commit comments

Comments
 (0)