Skip to content

Commit ca7e926

Browse files
Rollup merge of #153292 - Gelbpunkt:vec-calloc-uwtables-optional, r=jieyouxu
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`.
2 parents f0a7e7f + b4d36db commit ca7e926

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)