diff options
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index dca716c0d9..97060772b0 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -7205,15 +7205,15 @@ ExprResult Sema::ConvertPropertyForRValue(Expr *E) { VK = Expr::getValueKindForType(GetterMethod->getResultType()); } else { - // lvalue-ness of an explicit property is determined by - // getter type. Diag(PRE->getLocation(), diag::err_getter_not_found) << PRE->getBase()->getType(); } } else { + // lvalue-ness of an explicit property is determined by + // getter type. QualType ResT = PRE->getGetterResultType(); - VK = Expr::getValueKindForType(ResT); + VK = Expr::getValueKindForType(ResT); } E = ImplicitCastExpr::Create(Context, T, CK_GetObjCProperty, |