aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-06 21:11:37 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-06 21:11:37 +0000
commitec604c8e1f6a76a413c38179a2eeeee37fc7f886 (patch)
treed9f92042f1bace75de216e39d884d6996c659093 /lib/Sema/SemaDeclObjC.cpp
parent9f1e5727e36481d830e566ff5a016fda726838e4 (diff)
Check for correct'void' return type for setter methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 636a71d9a4..83013a7de3 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -940,7 +940,7 @@ Sema::diagnosePropertySetterGetterMismatch(ObjCPropertyDecl *property,
<< GetterMethod->getSelector().getAsIdentifierInfo();
if (SetterMethod) {
- if (SetterMethod->getResultType() != Context.VoidPtrTy)
+ if (SetterMethod->getResultType() != Context.VoidTy)
Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
if (SetterMethod->getNumParams() != 1 ||
(SetterMethod->getParamDecl(0)->getType() != property->getType()))