remove a helper method.

llvm-svn: 54101
This commit is contained in:
Chris Lattner 2008-07-26 20:50:02 +00:00
parent 7e80097f6e
commit ac87ef5dcc
2 changed files with 4 additions and 3 deletions

View File

@ -1175,7 +1175,6 @@ public:
IdentifierInfo *Id, QualType T,
PropertyControl propControl = None);
QualType getType() const { return DeclType; }
QualType getCanonicalType() const { return DeclType.getCanonicalType(); }
PropertyAttributeKind getPropertyAttributes() const {
return PropertyAttributeKind(PropertyAttributes);

View File

@ -279,7 +279,8 @@ Sema::DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
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);
@ -1145,7 +1146,8 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
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;