about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorArvind Mukund <armu30@gmail.com>2022-12-19 19:06:30 -0800
committerArvind Mukund <armu30@gmail.com>2022-12-19 19:13:17 -0800
commit55c4164fffb8c4389727cff554dd77012c624087 (patch)
tree0b89d2b232dad1d89031a674b6f0d9d671434399 /compiler/rustc_codegen_llvm/src/llvm
parent696563efc5c3c0d87a601dff22966d2c5eb20a5e (diff)
downloadrust-55c4164fffb8c4389727cff554dd77012c624087.tar.gz
rust-55c4164fffb8c4389727cff554dd77012c624087.zip
Correct ModFlagBehavior for Aarch64 on LLVM-15
When building with Fat LTO and BTI enabled on aarch64, the BTI is set to
`Module::Min` for alloc shim but is set to `Module::Error` for the
crate. This was fine when we were using LLVM-14 but LLVM-15 changes it's
behaviour to support for compiling with different `mbranch-protection`
flags.

Refer:
https://github.com/rust-lang/llvm-project/commit/b0343a38a5910e980bb031e4014655d77cd0c162
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index e61dbe8b8fc..6c78966a98d 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -79,6 +79,7 @@ pub enum LLVMModFlagBehavior {
     Append = 5,
     AppendUnique = 6,
     Max = 7,
+    Min = 8,
 }
 
 // Consts for the LLVM CallConv type, pre-cast to usize.