Skip to content

Commit

Permalink
objc - compare setter/property types using
Browse files Browse the repository at this point in the history
hasSameUnqualifiedType in //rdar://10156674


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140576 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Fariborz Jahanian committed Sep 26, 2011
1 parent 02fa1b9 commit 2aac0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Sema/SemaObjCProperty.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 2aac0c9

Please sign in to comment.