about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-05-09 18:38:47 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-05-09 18:43:12 +1000
commit9addf0651c2fc9174824ea7e28c2651c780ae968 (patch)
tree84954aaf325e22c7ce7559cce1691b9b5d0c7baf /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent7cab196e7cccb68454e0ee5e667628387ad06463 (diff)
downloadrust-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.cpp2
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.