From 3695af697efa26b0ea3b67739ade3ecc3929154e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 19 Feb 2024 15:02:49 +0100 Subject: Set writable and dead_on_unwind attributes for sret arguments --- compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs') 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 -- cgit 1.4.1-3-g733a5