diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-08-26 11:13:03 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2025-08-26 16:16:23 +0200 |
| commit | c3ab409b4fa3b1fb18f34877d9811bb502ed507f (patch) | |
| tree | 05ab8323d24155dd4d9459c873ce3f2358141503 /tests/codegen-llvm/loongarch-abi | |
| parent | ace9a74442aec13c75532d34e15d97428056866d (diff) | |
| download | rust-c3ab409b4fa3b1fb18f34877d9811bb502ed507f.tar.gz rust-c3ab409b4fa3b1fb18f34877d9811bb502ed507f.zip | |
Use captures(address) instead of captures(none) for indirect args
While provenance cannot be captured through these arguments, the address / object identity can.
Diffstat (limited to 'tests/codegen-llvm/loongarch-abi')
| -rw-r--r-- | tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs b/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs index 4666342a16a..7ea08a1a8f7 100644 --- a/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs +++ b/tests/codegen-llvm/loongarch-abi/loongarch64-lp64d-abi.rs @@ -256,11 +256,11 @@ pub struct IntDoubleInt { c: i32, } -// CHECK: define void @f_int_double_int_s_arg(ptr{{( dead_on_return)?}} noalias{{( nocapture)?}} noundef align 8{{( captures\(none\))?}} dereferenceable(24) %a) +// CHECK: define void @f_int_double_int_s_arg(ptr{{( dead_on_return)?}} noalias noundef align 8{{( captures\(address\))?}} dereferenceable(24) %a) #[no_mangle] pub extern "C" fn f_int_double_int_s_arg(a: IntDoubleInt) {} -// CHECK: define void @f_ret_int_double_int_s(ptr{{( dead_on_unwind)?}} noalias{{( nocapture)?}} noundef{{( writable)?}} sret([24 x i8]) align 8{{( captures\(none\))?}} dereferenceable(24) %_0) +// CHECK: define void @f_ret_int_double_int_s(ptr{{( dead_on_unwind)?}} noalias noundef{{( writable)?}} sret([24 x i8]) align 8{{( captures\(address\))?}} dereferenceable(24) %_0) #[no_mangle] pub extern "C" fn f_ret_int_double_int_s() -> IntDoubleInt { IntDoubleInt { a: 1, b: 2., c: 3 } |
