about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-02-01 14:00:20 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-02-01 14:14:40 +1100
commit8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a (patch)
treef3f1f7be5ee0863d0ba23d4178fe034a47bfed08 /compiler/rustc_codegen_llvm/src/debuginfo
parent949b4673ceebd767cc0b138392b420a050dc6ce0 (diff)
downloadrust-8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a.tar.gz
rust-8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a.zip
Use `LLVMDIBuilderCreateDebugLocation`
The LLVM-C binding takes an explicit context, whereas our binding obtained the
context from the scope argument.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
index cb84bede893..496178c6b1d 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs
@@ -574,7 +574,7 @@ impl<'ll, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> {
             (line, col)
         };
 
-        unsafe { llvm::LLVMRustDIBuilderCreateDebugLocation(line, col, scope, inlined_at) }
+        unsafe { llvm::LLVMDIBuilderCreateDebugLocation(self.llcx, line, col, scope, inlined_at) }
     }
 
     fn create_vtable_debuginfo(