about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/abi.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-09-17 12:37:45 -0700
committerJosh Stone <jistone@redhat.com>2024-09-18 13:53:31 -0700
commit6fd8a5068034ad8a60704ef72e335d1b4c32cfd4 (patch)
tree426816820267f166b8c346ca48502b49152cd508 /compiler/rustc_codegen_llvm/src/abi.rs
parentf79a912d9edc3ad4db910c0e93672ed5c65133fa (diff)
downloadrust-6fd8a5068034ad8a60704ef72e335d1b4c32cfd4.tar.gz
rust-6fd8a5068034ad8a60704ef72e335d1b4c32cfd4.zip
Update the minimum external LLVM to 18
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/abi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/abi.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/abi.rs b/compiler/rustc_codegen_llvm/src/abi.rs
index e318e615d1f..26718792f5f 100644
--- a/compiler/rustc_codegen_llvm/src/abi.rs
+++ b/compiler/rustc_codegen_llvm/src/abi.rs
@@ -465,9 +465,7 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
                     cx.type_array(cx.type_i8(), self.ret.layout.size.bytes()),
                 );
                 attributes::apply_to_llfn(llfn, llvm::AttributePlace::Argument(i), &[sret]);
-                if cx.sess().opts.optimize != config::OptLevel::No
-                    && llvm_util::get_version() >= (18, 0, 0)
-                {
+                if cx.sess().opts.optimize != config::OptLevel::No {
                     attributes::apply_to_llfn(
                         llfn,
                         llvm::AttributePlace::Argument(i),