]> granicus.if.org Git - clang/commitdiff
removes a meaningless comment.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 29 Apr 2011 22:11:28 +0000 (22:11 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 29 Apr 2011 22:11:28 +0000 (22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130550 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprAgg.cpp

index 2f2f7c1fe55fe3ab8d83016825816bbc8f0e6c82..29c76887a7c94fd54e174a1272ac2232d0a2945e 100644 (file)
@@ -394,7 +394,7 @@ void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) {
          && "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 @@ void AggExprEmitter::VisitBinAssign(const BinaryOperator *E) {
         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());