From: Fariborz Jahanian Date: Fri, 14 Oct 2011 18:35:31 +0000 (+0000) Subject: Fix misplaced comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=597cad65b8c67d930b4d8e787dd81a0ee7c1f3f6;p=clang Fix misplaced comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141967 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,