summaryrefslogtreecommitdiffstats
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
commit8707e322cc9d71b9ba169a3b74c23f251d67a87f (patch)
treefbfdd0def652ebc1cf19aec94fda4bb2a99fffdf
parent5df391e5c7a39aae5b71277683c202db7283d250 (diff)
downloadbcm5719-llvm-8707e322cc9d71b9ba169a3b74c23f251d67a87f.tar.gz
bcm5719-llvm-8707e322cc9d71b9ba169a3b74c23f251d67a87f.zip
Check for correct'void' return type for setter methods.
llvm-svn: 60629
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 636a71d9a4b..83013a7de3b 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/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()))
OpenPOWER on IntegriCloud