diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-02-25 00:43:03 -0500 | 
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-03-05 18:54:45 -0500 | 
| commit | 96a72676d1134f58c378b0b8003922b09b9f1e5f (patch) | |
| tree | f78c6972555bd2bd116ec9d1941b7798da8c3d90 /tests/codegen/function-arguments.rs | |
| parent | 3c029725f5a198f4ccb1332bece98c2b50dbce01 (diff) | |
| download | rust-96a72676d1134f58c378b0b8003922b09b9f1e5f.tar.gz rust-96a72676d1134f58c378b0b8003922b09b9f1e5f.zip | |
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.
Diffstat (limited to 'tests/codegen/function-arguments.rs')
| -rw-r--r-- | tests/codegen/function-arguments.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tests/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs index b75c188f51a..2a1c023a931 100644 --- a/tests/codegen/function-arguments.rs +++ b/tests/codegen/function-arguments.rs @@ -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 { | 
