aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTBAA.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CodeGenTBAA.cpp')
-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.