aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-10-01 08:39:00 +0000
committerKostya Serebryany <kcc@google.com>2012-10-01 08:39:00 +0000
commit58197501e7c20138f8d3bb06cbe8675f5070c8bf (patch)
tree2599d57ee7c87fe76fc18cfffe2982d5a5c049d5
parent7b3b95a9485059b196896accc0144fd0bc31ff2c (diff)
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
-rw-r--r--test/CodeGen/tbaa-for-vptr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/tbaa-for-vptr.cpp b/test/CodeGen/tbaa-for-vptr.cpp
index b9a68fe0ea..e8798075bf 100644
--- a/test/CodeGen/tbaa-for-vptr.cpp
+++ b/test/CodeGen/tbaa-for-vptr.cpp
@@ -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"}