Skip to content

Commit 5ff5243

Browse files
committed
Relax clang/test/CodeGen/tbaa-pointers.c for -Asserts.
Fixes c4eeef3 (llvmorg-20-init-12475-gc4eeef32d5dc)
1 parent 3f9d02a commit 5ff5243

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/test/CodeGen/tbaa-pointers.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,11 @@ typedef struct {
194194
// types in C.
195195
void unamed_struct_typedef(TypedefS *ptr) {
196196
// COMMON-LABEL: define void @unamed_struct_typedef(
197-
// COMMON-SAME: ptr noundef %ptr)
198-
// COMMON-NEXT: entry:
199-
// COMMON-NEXT: [[PTR_ADDR:%.+]] = alloca ptr, align 8
200-
// DEFAULT-NEXT: store ptr %ptr, ptr [[PTR_ADDR]], align 8, !tbaa [[ANYPTR]]
197+
// COMMON-SAME: ptr noundef [[PTRA:%.+]])
198+
// COMMON: [[PTR_ADDR:%.+]] = alloca ptr, align 8
199+
// DEFAULT-NEXT: store ptr [[PTRA]], ptr [[PTR_ADDR]], align 8, !tbaa [[ANYPTR]]
201200
// DEFAULT-NEXT: [[L0:%.+]] = load ptr, ptr [[PTR_ADDR]], align 8, !tbaa [[ANYPTR]]
202-
// ENABLED-NEXT: store ptr %ptr, ptr [[PTR_ADDR]], align 8, !tbaa [[P1TYPEDEF:!.+]]
201+
// ENABLED-NEXT: store ptr [[PTRA]], ptr [[PTR_ADDR]], align 8, !tbaa [[P1TYPEDEF:!.+]]
203202
// ENABLED-NEXT: [[L0:%.+]] = load ptr, ptr [[PTR_ADDR]], align 8, !tbaa [[P1TYPEDEF]]
204203
// COMMON-NEXT: [[GEP:%.+]] = getelementptr inbounds nuw %struct.TypedefS, ptr [[L0]], i32 0, i32 0
205204
// COMMON-NEXT: store i32 0, ptr [[GEP]], align 4

0 commit comments

Comments
 (0)