[cfe-commits] r130550 - /cfe/trunk/lib/CodeGen/CGExprAgg.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Apr 29 15:11:29 PDT 2011


Author: fjahanian
Date: Fri Apr 29 17:11:28 2011
New Revision: 130550

URL: http://llvm.org/viewvc/llvm-project?rev=130550&view=rev
Log:
removes a meaningless comment.

Modified:
    cfe/trunk/lib/CodeGen/CGExprAgg.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=130550&r1=130549&r2=130550&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Fri Apr 29 17:11:28 2011
@@ -394,7 +394,7 @@
          && "Invalid assignment");
 
   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(E->getLHS()))
-    if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
+    if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()))
       if (VD->hasAttr<BlocksAttr>() &&
           E->getRHS()->HasSideEffects(CGF.getContext())) {
         // When __block variable on LHS, the RHS must be evaluated first 
@@ -404,12 +404,10 @@
         bool GCollection = false;
         if (CGF.getContext().getLangOptions().getGCMode())
           GCollection = TypeRequiresGCollection(E->getLHS()->getType());
-        // Codegen the RHS so that it stores directly into the LHS.
         Dest = AggValueSlot::forLValue(LHS, true, GCollection);
         EmitFinalDestCopy(E, RHS, true);
         return;
       }
-    }
   
   LValue LHS = CGF.EmitLValue(E->getLHS());
 





More information about the cfe-commits mailing list