]> granicus.if.org Git - clang/commitdiff
Fix misplaced comment.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 14 Oct 2011 18:35:31 +0000 (18:35 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 14 Oct 2011 18:35:31 +0000 (18:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index dca716c0d974a68d5e1e3e0cc7d4ad25aa3ae476..97060772b0a1506ba8e9463f94f17375dda78486 100644 (file)
@@ -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,