diff --git a/clang/test/CodeGen/tbaa-for-vptr.cpp b/clang/test/CodeGen/tbaa-for-vptr.cpp index b9a68fe0eae1..e8798075bf22 100644 --- a/clang/test/CodeGen/tbaa-for-vptr.cpp +++ b/clang/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"}