Skip to content

Commit b41c232

Browse files
committed
tests: fix up new test for nocapture -> capture(none) change
Same motivation as rust-lang#136287, but for a newly introduced test. Rather than over-constraining here, we just match the sret and accept pretty much all other attributes. @rustbot label llvm-main r? @nikic
1 parent 9f48ded commit b41c232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/codegen/uninhabited-transparent-return-abi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern "Rust" {
2424
pub fn test_uninhabited_ret_by_ref() {
2525
// CHECK: %_1 = alloca [24 x i8], align {{8|4}}
2626
// CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %_1)
27-
// CHECK-NEXT: call void @opaque(ptr noalias nocapture noundef nonnull sret([24 x i8]) align {{8|4}} dereferenceable(24) %_1) #2
27+
// CHECK-NEXT: call void @opaque({{.*}} sret([24 x i8]) {{.*}} %_1) #2
2828
// CHECK-NEXT: unreachable
2929
unsafe {
3030
opaque();
@@ -36,7 +36,7 @@ pub fn test_uninhabited_ret_by_ref() {
3636
pub fn test_uninhabited_ret_by_ref_with_arg(rsi: u32) {
3737
// CHECK: %_2 = alloca [24 x i8], align {{8|4}}
3838
// CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %_2)
39-
// CHECK-NEXT: call void @opaque_with_arg(ptr noalias nocapture noundef nonnull sret([24 x i8]) align {{8|4}} dereferenceable(24) %_2, i32 noundef %rsi) #2
39+
// CHECK-NEXT: call void @opaque_with_arg({{.*}} sret([24 x i8]) {{.*}} %_2, i32 noundef %rsi) #2
4040
// CHECK-NEXT: unreachable
4141
unsafe {
4242
opaque_with_arg(rsi);

0 commit comments

Comments
 (0)