objc - compare setter/property types using

hasSameUnqualifiedType in //rdar://10156674

llvm-svn: 140576
This commit is contained in:
Fariborz Jahanian 2011-09-26 22:59:09 +00:00
parent 5d0434644c
commit 0ee58d6b4b
1 changed files with 2 additions and 2 deletions

View File

@ -1481,8 +1481,8 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property,
Context.VoidTy)
Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
if (SetterMethod->param_size() != 1 ||
((*SetterMethod->param_begin())->getType().getUnqualifiedType()
!= property->getType().getUnqualifiedType())) {
!Context.hasSameUnqualifiedType(
(*SetterMethod->param_begin())->getType(), property->getType())) {
Diag(property->getLocation(),
diag::warn_accessor_property_type_mismatch)
<< property->getDeclName()