IdentifierInfo *Id, QualType T,
PropertyControl propControl = None);
QualType getType() const { return DeclType; }
- QualType getCanonicalType() const { return DeclType.getCanonicalType(); }
PropertyAttributeKind getPropertyAttributes() const {
return PropertyAttributeKind(PropertyAttributes);
Property->getName(), "getter", inheritedName,
SourceRange());
- if (Property->getCanonicalType() != SuperProperty->getCanonicalType())
+ if (Context.getCanonicalType(Property->getType()) !=
+ Context.getCanonicalType(SuperProperty->getType()))
Diag(Property->getLocation(), diag::warn_property_type,
Property->getType().getAsString(),
inheritedName);
return 0;
}
// Check that type of property and its ivar match.
- if (Ivar->getCanonicalType() != property->getCanonicalType()) {
+ if (Context.getCanonicalType(Ivar->getType()) !=
+ Context.getCanonicalType(property->getType())) {
Diag(PropertyLoc, diag::error_property_ivar_type, property->getName(),
Ivar->getName());
return 0;