[cfe-commits] r116544 - /cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
Dan Gohman
gohman at apple.com
Thu Oct 14 17:01:39 PDT 2010
Author: djg
Date: Thu Oct 14 19:01:39 2010
New Revision: 116544
URL: http://llvm.org/viewvc/llvm-project?rev=116544&view=rev
Log:
Add a TBAA type for pointer types.
Modified:
cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp?rev=116544&r1=116543&r2=116544&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp Thu Oct 14 19:01:39 2010
@@ -77,6 +77,10 @@
}
}
+ // For now, treat all pointers as equivalent to each other.
+ if (Ty->isPointerType())
+ return MetadataCache[Ty] = getTBAAInfoForNamedType("TBAA.pointer", Char);
+
// For now, handle any other kind of type conservatively.
return MetadataCache[Ty] = Char;
}
More information about the cfe-commits
mailing list