]> granicus.if.org Git - clang/commitdiff
Add a TBAA type for pointer types.
authorDan Gohman <gohman@apple.com>
Fri, 15 Oct 2010 00:01:39 +0000 (00:01 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 15 Oct 2010 00:01:39 +0000 (00:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116544 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTBAA.cpp

index bff9fa2605ba6c82c6c6dde063298c042f329aa5..ed2b13f11ccaedd46a145d9c78869479b426de37 100644 (file)
@@ -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;
 }