From 88a4cfde0e0efefc40fbce3ae2c96191132218a8 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 17 Oct 2011 20:05:43 +0000 Subject: Strip qualifiers off the type of an implicit property defined by only a setter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142236 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaExprObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index cc9e8b3758..527983805c 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -673,7 +673,7 @@ HandleExprPropertyRefExpr(const ObjCObjectPointerType *OPT, PType = getMessageSendResultType(QualType(OPT, 0), Getter, false, Super); else { ParmVarDecl *ArgDecl = *Setter->param_begin(); - PType = ArgDecl->getType(); + PType = ArgDecl->getType().getUnqualifiedType(); // can't be an array } ExprValueKind VK = VK_LValue; -- cgit v1.2.3