diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-19 09:59:36 -0500 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-19 09:59:36 -0500 |
| commit | 6e740ae9348508544f41076ea9c7f8b4c3848688 (patch) | |
| tree | 998ac4586f04255d709732dfe20e33ee53f33039 /src/test/codegen | |
| parent | dcbdc8c19b4b1e581b8b83a513b11c4c4248d0fc (diff) | |
always add align attributes
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/function-arguments-noopt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/function-arguments-noopt.rs b/src/test/codegen/function-arguments-noopt.rs index c8c88888978..1d740a4b329 100644 --- a/src/test/codegen/function-arguments-noopt.rs +++ b/src/test/codegen/function-arguments-noopt.rs @@ -23,7 +23,7 @@ pub fn boolean_call(x: bool, f: fn(bool) -> bool) -> bool { f(x) } -// CHECK: define i32* @borrow(i32* %x) +// CHECK: define align 4 i32* @borrow(i32* align 4 %x) #[no_mangle] pub fn borrow(x: &i32) -> &i32 { x @@ -32,7 +32,7 @@ pub fn borrow(x: &i32) -> &i32 { // CHECK-LABEL: @borrow_call #[no_mangle] pub fn borrow_call(x: &i32, f: fn(&i32) -> &i32) -> &i32 { - // CHECK: call i32* %f(i32* %x) + // CHECK: call align 4 i32* %f(i32* align 4 %x) f(x) } |
