aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-03-29 17:37:10 +0000
committerChad Rosier <mcrosier@apple.com>2012-03-29 17:37:10 +0000
commit615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee (patch)
tree7824e57b6a72be3708858c06fbbf6d45aea87e35 /clang/lib/CodeGen/CGClass.cpp
parentbd9c910c8c0e30d646c2e1a052297df2032117cb (diff)
downloadllvm-615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee.zip
llvm-615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee.tar.gz
llvm-615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee.tar.bz2
Revert r153613 as it's causing large compile-time regressions on the nightly testers.
llvm-svn: 153660
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 254ef80..b452c1b 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -401,8 +401,7 @@ static void EmitBaseInitializer(CodeGenFunction &CGF,
AggValueSlot::forAddr(V, Alignment, Qualifiers(),
AggValueSlot::IsDestructed,
AggValueSlot::DoesNotNeedGCBarriers,
- AggValueSlot::IsNotAliased,
- AggValueSlot::IsNotCompleteObject);
+ AggValueSlot::IsNotAliased);
CGF.EmitAggExpr(BaseInit->getInit(), AggSlot);
@@ -450,8 +449,7 @@ static void EmitAggMemberInitializer(CodeGenFunction &CGF,
AggValueSlot::forLValue(LV,
AggValueSlot::IsDestructed,
AggValueSlot::DoesNotNeedGCBarriers,
- AggValueSlot::IsNotAliased,
- AggValueSlot::IsCompleteObject);
+ AggValueSlot::IsNotAliased);
CGF.EmitAggExpr(Init, Slot);
}
@@ -591,8 +589,7 @@ static void EmitMemberInitializer(CodeGenFunction &CGF,
// Copy the aggregate.
CGF.EmitAggregateCopy(LHS.getAddress(), Src.getAddress(), FieldType,
- LHS.isVolatileQualified(),
- /*destIsCompleteObject*/ true);
+ LHS.isVolatileQualified());
return;
}
}
@@ -1374,10 +1371,7 @@ CodeGenFunction::EmitDelegatingCXXConstructorCall(const CXXConstructorDecl *Ctor
AggValueSlot::forAddr(ThisPtr, Alignment, Qualifiers(),
AggValueSlot::IsDestructed,
AggValueSlot::DoesNotNeedGCBarriers,
- AggValueSlot::IsNotAliased,
- CurGD.getCtorType() == Ctor_Complete
- ? AggValueSlot::IsCompleteObject
- : AggValueSlot::IsNotCompleteObject);
+ AggValueSlot::IsNotAliased);
EmitAggExpr(Ctor->init_begin()[0]->getInit(), AggSlot);