about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-02-19 15:02:49 +0100
committerNikita Popov <npopov@redhat.com>2024-04-25 11:43:47 +0900
commit3695af697efa26b0ea3b67739ade3ecc3929154e (patch)
tree0b34ec36942c528246b5f3a85014f6952d8d99c3 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parentaa067fb984d36462548bb785da221bfaf38253f0 (diff)
downloadrust-3695af697efa26b0ea3b67739ade3ecc3929154e.tar.gz
rust-3695af697efa26b0ea3b67739ade3ecc3929154e.zip
Set writable and dead_on_unwind attributes for sret arguments
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 5509baaa3e9..96265043a1c 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -200,6 +200,8 @@ pub enum AttributeKind {
     AllocAlign = 39,
     SanitizeSafeStack = 40,
     FnRetThunkExtern = 41,
+    Writable = 42,
+    DeadOnUnwind = 43,
 }
 
 /// LLVMIntPredicate