summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-10-14 18:35:31 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-10-14 18:35:31 +0000
commit597cad65b8c67d930b4d8e787dd81a0ee7c1f3f6 (patch)
treec1087c29034587f5cfd19323d02d4aed9c58f64a
parent2e8b97c5fa0fa9070fafce1bf56eef0c35cf114f (diff)
Fix misplaced comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141967 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp6
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,