diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-05-09 18:38:47 +1000 | 
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-05-09 18:43:12 +1000 | 
| commit | 9addf0651c2fc9174824ea7e28c2651c780ae968 (patch) | |
| tree | 84954aaf325e22c7ce7559cce1691b9b5d0c7baf /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 7cab196e7cccb68454e0ee5e667628387ad06463 (diff) | |
| download | rust-9addf0651c2fc9174824ea7e28c2651c780ae968.tar.gz rust-9addf0651c2fc9174824ea7e28c2651c780ae968.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp index 38fcd0527da..87906dee4d3 100644 --- a/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp @@ -121,7 +121,7 @@ extern "C" void LLVMRustCoverageWriteMappingToBuffer( unsigned NumVirtualFileMappingIDs, const LLVMRustCounterExpression *RustExpressions, unsigned NumExpressions, - LLVMRustCounterMappingRegion *RustMappingRegions, + const LLVMRustCounterMappingRegion *RustMappingRegions, unsigned NumMappingRegions, RustStringRef BufferOut) { // Convert from FFI representation to LLVM representation. | 
