summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commit52a8cca56fe56914f3186c6758f764f26ef4f2e3 (patch)
tree45e297d71d9553e9b3121a1e2af87c275732f22a /clang/lib/CodeGen
parent7708746c332a5cec16f9ab924186d788d3c946c6 (diff)
downloadbcm5719-llvm-52a8cca56fe56914f3186c6758f764f26ef4f2e3.tar.gz
bcm5719-llvm-52a8cca56fe56914f3186c6758f764f26ef4f2e3.zip
removes a meaningless comment.
llvm-svn: 130550
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 2f2f7c1fe55..29c76887a7c 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud