aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-15 20:26:20 +0000
committerDan Gohman <gohman@apple.com>2010-10-15 20:26:20 +0000
commitdc491118b3ad2b35f047df611107b8a069176ce5 (patch)
tree3e7717a6a08fa58e885294e689498c69688fa5ea
parent2f8c21d880e64fa13372ce978009b65a49f0040f (diff)
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
-rw-r--r--lib/CodeGen/CodeGenTBAA.cpp5
1 files changed, 3 insertions, 2 deletions
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.