about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2025-02-15 10:24:24 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2025-02-19 11:36:52 -0800
commit642a705f714eaa73875b9bc9e7848568efc4b890 (patch)
tree2d47702e4de13433aacdd06843c6ff44e2201e28 /compiler/rustc_codegen_llvm/src/builder.rs
parent511bf307f03d7045f54a376d389ebdf9786e7a24 (diff)
downloadrust-642a705f714eaa73875b9bc9e7848568efc4b890.tar.gz
rust-642a705f714eaa73875b9bc9e7848568efc4b890.zip
PR feedback
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs4
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 18bb6a609aa..5d1a133e808 100644
--- a/compiler/rustc_codegen_llvm/src/builder.rs
+++ b/compiler/rustc_codegen_llvm/src/builder.rs
@@ -946,7 +946,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         let trunc = self.trunc(val, dest_ty);
         if llvm_util::get_version() >= (19, 0, 0) {
             unsafe {
-                if llvm::LLVMIsATruncInst(trunc).is_some() {
+                if llvm::LLVMIsAInstruction(trunc).is_some() {
                     llvm::LLVMSetNUW(trunc, True);
                 }
             }
@@ -958,7 +958,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
         let trunc = self.trunc(val, dest_ty);
         if llvm_util::get_version() >= (19, 0, 0) {
             unsafe {
-                if llvm::LLVMIsATruncInst(trunc).is_some() {
+                if llvm::LLVMIsAInstruction(trunc).is_some() {
                     llvm::LLVMSetNSW(trunc, True);
                 }
             }