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.

llvm-svn: 116616
This commit is contained in:
Dan Gohman
2010-10-15 20:26:20 +00:00
parent 2d0a3c7b8c
commit c44fd6486e

View File

@@ -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.