Skip to content

Commit b4d36db

Browse files
committed
tests: codegen-llvm: vec-calloc: do not require the uwtable attribute
The uwtable attribute does not get emitted on targets that don't have unwinding tables, such as x86_64-unknown-hermit.
1 parent 8d50bcc commit b4d36db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/codegen-llvm/vec-calloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ pub fn vec_array(n: usize) -> Vec<[u32; 1_000_000]> {
199199
// Ensure that __rust_alloc_zeroed gets the right attributes for LLVM to optimize it away.
200200
// CHECK: declare noalias noundef ptr @{{.*}}__rust_alloc_zeroed(i64 noundef, i64 allocalign noundef range(i64 1, -9223372036854775807)) unnamed_addr [[RUST_ALLOC_ZEROED_ATTRS:#[0-9]+]]
201201

202-
// CHECK-DAG: attributes [[RUST_ALLOC_ZEROED_ATTRS]] = { {{.*}} allockind("alloc,zeroed,aligned") allocsize(0) uwtable "alloc-family"="__rust_alloc" {{.*}} }
202+
// CHECK-DAG: attributes [[RUST_ALLOC_ZEROED_ATTRS]] = { {{.*}} allockind("alloc,zeroed,aligned") allocsize(0) {{(uwtable )?}}"alloc-family"="__rust_alloc" {{.*}} }

0 commit comments

Comments
 (0)