use [N x i8] for byval/sret types
This avoids depending on LLVM's struct types to determine the size of the byval/sret slot.
This commit is contained in:
parent
3c029725f5
commit
96a72676d1
10 changed files with 80 additions and 73 deletions
|
@ -188,7 +188,7 @@ pub fn notunpin_box(x: Box<NotUnpin>) -> Box<NotUnpin> {
|
|||
x
|
||||
}
|
||||
|
||||
// CHECK: @struct_return(ptr noalias nocapture noundef sret(%S) align 4 dereferenceable(32){{( %_0)?}})
|
||||
// CHECK: @struct_return(ptr noalias nocapture noundef 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