Skip to content
Snippets Groups Projects
Commit 58197501 authored by Kostya Serebryany's avatar Kostya Serebryany
Browse files

fix test/CodeGen/tbaa-for-vptr.cpp: don't hardcode the index of metadata

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164928 91177308-0d34-0410-b5e6-96231b3b80d8
parent 7b3b95a9
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ void CallFoo(A *a) {
a->foo();
}
// CHECK: %{{.*}} = load {{.*}} !tbaa !0
// CHECK: store {{.*}} !tbaa !0
// CHECK: = metadata !{metadata !"vtable pointer", metadata !{{.*}}}
// CHECK: %{{.*}} = load {{.*}} !tbaa ![[NUM:[0-9]+]]
// CHECK: store {{.*}} !tbaa ![[NUM]]
// CHECK: [[NUM]] = metadata !{metadata !"vtable pointer", metadata !{{.*}}}
// NOTBAA-NOT: = metadata !{metadata !"Simple C/C++ TBAA"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment