Skip to content

Commit 0b74ef7

Browse files
committed
Update test after 7954a05
7954a05 enabled -fpointer-tbaa by default. Update test to use -fno-pointer-tbaa Sync the clang/unittests/CodeGen/TBAAMetadataTest.cpp with llorg to discard previous opaque pointer changes.
1 parent d6561ac commit 0b74ef7

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

clang/unittests/CodeGen/TBAAMetadataTest.cpp

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,27 @@ TEST(TBAAMetadataTest, BasicTypes) {
117117
ASSERT_TRUE(I);
118118

119119
I = matchNext(I,
120-
MInstruction(Instruction::Store,
121-
MValType(PointerType::getUnqual(Compiler.Context)),
122-
MMTuple(MMTuple(MMString("p1 void"),
123-
AnyPtr, MConstInt(0)),
124-
MSameAs(0), MConstInt(0))));
120+
MInstruction(Instruction::Store,
121+
MValType(PointerType::getUnqual(Compiler.Context)),
122+
MMTuple(
123+
MMTuple(
124+
MMString("p1 void"),
125+
AnyPtr,
126+
MConstInt(0)),
127+
MSameAs(0),
128+
MConstInt(0))));
125129
ASSERT_TRUE(I);
126130

127131
I = matchNext(I,
128-
MInstruction(Instruction::Store,
129-
MValType(PointerType::getUnqual(Compiler.Context)),
130-
MMTuple(MMTuple(MMString("p1 void"),
131-
AnyPtr, MConstInt(0)),
132-
MSameAs(0), MConstInt(0))));
132+
MInstruction(Instruction::Store,
133+
MValType(PointerType::getUnqual(Compiler.Context)),
134+
MMTuple(
135+
MMTuple(
136+
MMString("p1 int"),
137+
AnyPtr,
138+
MConstInt(0)),
139+
MSameAs(0),
140+
MConstInt(0))));
133141
ASSERT_TRUE(I);
134142
}
135143

0 commit comments

Comments
 (0)