diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-15 00:01:39 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-15 00:01:39 +0000 |
commit | c1028f45ea061455b144ab42d0311aba5838c29c (patch) | |
tree | d9daa10b677a7294a13f6e118efcc5706e7318e6 /lib/CodeGen | |
parent | 9af2f83863eb27840a4eb17abefec906c078d8ea (diff) |
Add a TBAA type for pointer types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CodeGenTBAA.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTBAA.cpp b/lib/CodeGen/CodeGenTBAA.cpp index bff9fa2605..ed2b13f11c 100644 --- a/lib/CodeGen/CodeGenTBAA.cpp +++ b/lib/CodeGen/CodeGenTBAA.cpp @@ -77,6 +77,10 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) { } } + // 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; } |