about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2023-05-23 15:27:05 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2023-05-23 16:54:34 +0200
commit292bc548c882686f40886934f2055f3440a87eca (patch)
tree6932479dc0050645bb19ee02e16fb38de1ade2da
parentdc1ed9ddd7d15dfe75453b68bc1da8ae32dbe1f7 (diff)
downloadrust-292bc548c882686f40886934f2055f3440a87eca.tar.gz
rust-292bc548c882686f40886934f2055f3440a87eca.zip
codegen: do not require the uwtables attribute
The attribute is not emitted on targets without unwinding tables.
-rw-r--r--tests/codegen/box-maybe-uninit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/box-maybe-uninit.rs b/tests/codegen/box-maybe-uninit.rs
index 9f079e99b9c..5c08b5832ad 100644
--- a/tests/codegen/box-maybe-uninit.rs
+++ b/tests/codegen/box-maybe-uninit.rs
@@ -30,4 +30,4 @@ pub fn box_uninitialized2() -> Box<MaybeUninit<[usize; 1024 * 1024]>> {
 // from the CHECK-NOT above, and also verify the attributes got set reasonably.
 // CHECK: declare {{(dso_local )?}}noalias noundef ptr @__rust_alloc(i{{[0-9]+}} noundef, i{{[0-9]+}} allocalign noundef) unnamed_addr [[RUST_ALLOC_ATTRS:#[0-9]+]]
 
-// CHECK-DAG: attributes [[RUST_ALLOC_ATTRS]] = { {{.*}} allockind("alloc,uninitialized,aligned") allocsize(0) uwtable "alloc-family"="__rust_alloc" {{.*}} }
+// CHECK-DAG: attributes [[RUST_ALLOC_ATTRS]] = { {{.*}} allockind("alloc,uninitialized,aligned") allocsize(0) {{(uwtable )?}}"alloc-family"="__rust_alloc" {{.*}} }