about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-01-13 11:55:49 -0800
committerJosh Stone <jistone@redhat.com>2021-01-13 11:55:49 -0800
commit0342fd16ffb146c849f1bb40d42ba1bb7a940b62 (patch)
tree0f94f0737e59183d0698141e0d4e2aff99978223 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentfd2df74902fa98bcb71f85fd548c3eb399e6a96a (diff)
downloadrust-0342fd16ffb146c849f1bb40d42ba1bb7a940b62.tar.gz
rust-0342fd16ffb146c849f1bb40d42ba1bb7a940b62.zip
Remove the unused context from CreateDebugLocation
This went unused in commit 88d874de6395, part of #68965.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index c0ff62c17be..1d6f00562f1 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -994,11 +994,9 @@ LLVMRustDICompositeTypeReplaceArrays(LLVMRustDIBuilderRef Builder,
 }
 
 extern "C" LLVMMetadataRef
-LLVMRustDIBuilderCreateDebugLocation(LLVMContextRef ContextRef, unsigned Line,
-                                     unsigned Column, LLVMMetadataRef Scope,
+LLVMRustDIBuilderCreateDebugLocation(unsigned Line, unsigned Column,
+                                     LLVMMetadataRef Scope,
                                      LLVMMetadataRef InlinedAt) {
-  LLVMContext &Context = *unwrap(ContextRef);
-
   DebugLoc debug_loc = DebugLoc::get(Line, Column, unwrapDIPtr<MDNode>(Scope),
                                      unwrapDIPtr<MDNode>(InlinedAt));