aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-17 20:45:45 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-17 20:45:45 +0000
commiteb17e8b9aea1f260f73f1f9dd1da951b80b46370 (patch)
tree248c5bac995099e57f1df34bf41ea3e6f3fea140 /lib/Sema/SemaExpr.cpp
parent692577cd3005922d9657a85c92e3fd68b50ddea1 (diff)
Only assignment operator triggers property setter call.
Fixes radar 8437253. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 2031508470..83319a8087 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -6720,7 +6720,7 @@ ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
if (getLangOptions().CPlusPlus &&
((!isa<ObjCImplicitSetterGetterRefExpr>(lhs) &&
!isa<ObjCPropertyRefExpr>(lhs))
- || rhs->isTypeDependent()) &&
+ || rhs->isTypeDependent() || Opc != BO_Assign) &&
(lhs->getType()->isOverloadableType() ||
rhs->getType()->isOverloadableType())) {
// Find all of the overloaded operators visible from this