1
Fork 0

Set writable and dead_on_unwind attributes for sret arguments

This commit is contained in:
Nikita Popov 2024-02-19 15:02:49 +01:00
parent aa067fb984
commit 3695af697e
7 changed files with 31 additions and 3 deletions

View file

@ -198,7 +198,7 @@ pub fn notunpin_box(x: Box<NotUnpin>) -> Box<NotUnpin> {
x
}
// CHECK: @struct_return(ptr noalias nocapture noundef sret([32 x i8]) align 4 dereferenceable(32){{( %_0)?}})
// CHECK: @struct_return(ptr{{( dead_on_unwind)?}} noalias nocapture noundef{{( writable)?}} sret([32 x i8]) align 4 dereferenceable(32){{( %_0)?}})
#[no_mangle]
pub fn struct_return() -> S {
S {