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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user