Skip to content

Commit 63e032b

Browse files
authored
[UBSan][test] Make aggregate alignment test precise for Darwin
Darwin adds an alignment check on dest, which was causing test failure. rdar://120802910
1 parent 6886505 commit 63e032b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

clang/test/CodeGen/ubsan-aggregate-null-align.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ __attribute__((noinline)) void test_nested_member_plain_deref_ptr(struct Contain
9191
// Misaligned aggregate access
9292

9393
// SHARED-LABEL: define {{[^@]*}}@test_misaligned_access
94+
// SHARED: %[[P:.*]] = load ptr, ptr %p
9495
// SHARED-NOT: call void @__ubsan_handle_type_mismatch_v1_abort
9596
// SHARED: call void @llvm.memcpy
9697
__attribute__((noinline)) void test_misaligned_access(struct Small *dest, char *buf) {

0 commit comments

Comments
 (0)