diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-04-03 16:30:34 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-04-04 15:12:36 +0300 |
| commit | f41e711b7eb3831ca986aca4b70e627703704a8f (patch) | |
| tree | 10a8a0f77303321b11ef5de0b6a367dee7fc7917 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | cc77ae07a9ee7c3a56e73e801d1db68fc6ed49dc (diff) | |
| download | rust-f41e711b7eb3831ca986aca4b70e627703704a8f.tar.gz rust-f41e711b7eb3831ca986aca4b70e627703704a8f.zip | |
replace
LLVMRustBuildIntCast -> LLVMBuildIntCast2 LLVMRustAddHandler -> LLVMAddHandler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 6290452315b..74f3a662d60 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -841,7 +841,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { } fn intcast(&mut self, val: &'ll Value, dest_ty: &'ll Type, is_signed: bool) -> &'ll Value { - unsafe { llvm::LLVMRustBuildIntCast(self.llbuilder, val, dest_ty, is_signed) } + unsafe { llvm::LLVMBuildIntCast2(self.llbuilder, val, dest_ty, is_signed, UNNAMED) } } fn pointercast(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value { @@ -1052,7 +1052,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { let ret = ret.expect("LLVM does not have support for catchswitch"); for handler in handlers { unsafe { - llvm::LLVMRustAddHandler(ret, handler); + llvm::LLVMAddHandler(ret, handler); } } ret |
