From: Dan Gohman Date: Fri, 15 Oct 2010 20:26:20 +0000 (+0000) Subject: Use a different name for pointer types in tbaa, to be a little X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc491118b3ad2b35f047df611107b8a069176ce5;p=clang Use a different name for pointer types in tbaa, to be a little more consistent with other names, and to look less like a magic name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenTBAA.cpp b/lib/CodeGen/CodeGenTBAA.cpp index a1f38be122..02c95c0dce 100644 --- a/lib/CodeGen/CodeGenTBAA.cpp +++ b/lib/CodeGen/CodeGenTBAA.cpp @@ -85,9 +85,10 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) { } } - // For now, treat all pointers as equivalent to each other. + // TODO: Implement C++'s type "similarity" and consider dis-"similar" + // pointers distinct. if (Ty->isPointerType()) - return MetadataCache[Ty] = getTBAAInfoForNamedType("TBAA.pointer", Char); + return MetadataCache[Ty] = getTBAAInfoForNamedType("any pointer", Char); // Enum types are distinct types. In C++ they have "underlying types", // however they aren't related for TBAA.