diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-14 18:35:31 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-14 18:35:31 +0000 |
commit | e1e17cd8e2dfbddb119f4b22833ea6837d18dd8c (patch) | |
tree | b4879e345524797f685c4d9d3c2f9a428a175d31 /clang/lib/Sema | |
parent | 03df2b2e56232fda65a5b8c68eb1a4fe34fd3254 (diff) | |
download | bcm5719-llvm-e1e17cd8e2dfbddb119f4b22833ea6837d18dd8c.tar.gz bcm5719-llvm-e1e17cd8e2dfbddb119f4b22833ea6837d18dd8c.zip |
Fix misplaced comment.
llvm-svn: 141967
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index dca716c0d97..97060772b0a 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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, |