diff options
author | John McCall <rjmccall@apple.com> | 2011-10-17 20:05:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-17 20:05:43 +0000 |
commit | 88a4cfde0e0efefc40fbce3ae2c96191132218a8 (patch) | |
tree | d57eee055cd9e0d6a2abcd07bd0802ab66f60628 /lib | |
parent | 4e7064fa7e344e8f87a5b8457e96dfdd252c4a9e (diff) | |
download | clang-88a4cfde0e0efefc40fbce3ae2c96191132218a8.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |