diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-26 22:59:09 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-26 22:59:09 +0000 |
commit | 2aac0c9f8bc4dca3f883f429af8c1f57132d62d0 (patch) | |
tree | 60215390c4cb5f558fedbdf2d8234983fef224b2 /lib/Sema/SemaObjCProperty.cpp | |
parent | 02fa1b9cd6f185fead44f910733ff1086a6c5a0b (diff) |
objc - compare setter/property types using
hasSameUnqualifiedType in //rdar://10156674
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index 9297bc23c6..db23c84f2e 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -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() |