aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Sema/SemaDeclObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 5493442580..d7b71211d4 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -992,7 +992,8 @@ Sema::diagnosePropertySetterGetterMismatch(ObjCPropertyDecl *property,
}
if (SetterMethod) {
- if (SetterMethod->getResultType() != Context.VoidTy)
+ if (Context.getCanonicalType(SetterMethod->getResultType())
+ != Context.VoidTy)
Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
if (SetterMethod->getNumParams() != 1 ||
(SetterMethod->getParamDecl(0)->getType() != property->getType())) {