commit | 141e46faf0d749356ec1de11963527aaea2b3078 | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Mon Mar 26 17:03:51 2012 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Mon Mar 26 17:03:51 2012 +0000 |
tree | e163d8b72faf2713c6f7532c140d52bce17d903a | |
parent | db534a4eb97666b5fde75e816bc91cbbb0fdf864 [diff] [blame] |
add tbaa metadata to vtable pointer loads/stores llvm-svn: 153447
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp index 148081e..9ee3f1d 100644 --- a/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -179,3 +179,7 @@ // For now, handle any other kind of type conservatively. return MetadataCache[Ty] = getChar(); } + +llvm::MDNode *CodeGenTBAA::getTBAAInfoForVTablePtr() { + return getTBAAInfoForNamedType("vtable pointer", getRoot()); +}