Use LLVMDIBuilderCreateDebugLocation

The LLVM-C binding takes an explicit context, whereas our binding obtained the
context from the scope argument.
This commit is contained in:
Zalathar
2025-02-01 14:00:20 +11:00
parent 949b4673ce
commit 8ddd9c38f6
3 changed files with 9 additions and 17 deletions

View File

@@ -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(