forked from OSchip/llvm-project
fix test/CodeGen/tbaa-for-vptr.cpp: don't hardcode the index of metadata
llvm-svn: 164928
This commit is contained in:
parent
a31dee2e04
commit
f6645c8071
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue