aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-29 22:11:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-29 22:11:28 +0000
commit73a6f8e8ad2174fb70cfb4c7d7afe424cfe8a147 (patch)
tree534a433c7af3a60f18e370b5916a1b053bac4ad6 /lib/CodeGen/CGExprAgg.cpp
parent2c7168c660ab2b961ad48087e02cca96f7bb94d2 (diff)
removes a meaningless comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index 2f2f7c1fe5..29c76887a7 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -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());