diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-04-02 15:20:00 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-04-04 15:12:32 +0300 |
| commit | 0b5f9ac73e087b3728f0fcf53d541d4e80773732 (patch) | |
| tree | 161de231060cf8af9695a8b053c57be72e75ebe1 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 7c96e40da81165beef4f273f44e96eeef5a1bd30 (diff) | |
| download | rust-0b5f9ac73e087b3728f0fcf53d541d4e80773732.tar.gz rust-0b5f9ac73e087b3728f0fcf53d541d4e80773732.zip | |
replace deprecated LLVMSetCurrentDebugLocation with LLVMSetCurrentDebugLocation2
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 5392534cfcb..980eb54d123 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -209,8 +209,7 @@ impl<'ll> DebugInfoBuilderMethods for Builder<'_, 'll, '_> { fn set_dbg_loc(&mut self, dbg_loc: &'ll DILocation) { unsafe { - let dbg_loc_as_llval = llvm::LLVMRustMetadataAsValue(self.cx().llcx, dbg_loc); - llvm::LLVMSetCurrentDebugLocation(self.llbuilder, dbg_loc_as_llval); + llvm::LLVMSetCurrentDebugLocation2(self.llbuilder, dbg_loc); } } |
