Set writable and dead_on_unwind attributes for sret arguments
This commit is contained in:
parent
aa067fb984
commit
3695af697e
7 changed files with 31 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue