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

llvm-svn: 164928
This commit is contained in:
Kostya Serebryany 2012-10-01 08:39:00 +00:00
parent a31dee2e04
commit f6645c8071
1 changed files with 3 additions and 3 deletions

View File

@ -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"}