Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(692)

Unified Diff: lib/CodeGen/CodeGenTBAA.cpp

Issue 5881053: add tbaa metadata to vtable pointer loads/stores Base URL: https://llvm.org/svn/llvm-project/cfe/trunk/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/CodeGen/CodeGenTBAA.h ('k') | test/CodeGen/tbaa-for-vptr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/CodeGen/CodeGenTBAA.cpp
===================================================================
--- lib/CodeGen/CodeGenTBAA.cpp (revision 153188)
+++ lib/CodeGen/CodeGenTBAA.cpp (working copy)
@@ -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());
+}
« no previous file with comments | « lib/CodeGen/CodeGenTBAA.h ('k') | test/CodeGen/tbaa-for-vptr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b