diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-03-29 17:37:10 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-03-29 17:37:10 +0000 |
commit | 615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee (patch) | |
tree | 7824e57b6a72be3708858c06fbbf6d45aea87e35 /clang/lib/CodeGen/CGStmt.cpp | |
parent | bd9c910c8c0e30d646c2e1a052297df2032117cb (diff) | |
download | bcm5719-llvm-615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee.tar.gz bcm5719-llvm-615ed1a3a68f5e1d7f1832b08b1014bd0dc2b9ee.zip |
Revert r153613 as it's causing large compile-time regressions on the nightly testers.
llvm-svn: 153660
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 489386dfa2e..670167b9590 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -722,8 +722,7 @@ void CodeGenFunction::EmitReturnOfRValue(RValue RV, QualType Ty) { if (RV.isScalar()) { Builder.CreateStore(RV.getScalarVal(), ReturnValue); } else if (RV.isAggregate()) { - EmitAggregateCopy(ReturnValue, RV.getAggregateAddr(), Ty, - /*volatile*/ false, 0, /*destIsCompleteObject*/ true); + EmitAggregateCopy(ReturnValue, RV.getAggregateAddr(), Ty); } else { StoreComplexToAddr(RV.getComplexVal(), ReturnValue, false); } @@ -770,8 +769,7 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) { EmitAggExpr(RV, AggValueSlot::forAddr(ReturnValue, Alignment, Qualifiers(), AggValueSlot::IsDestructed, AggValueSlot::DoesNotNeedGCBarriers, - AggValueSlot::IsNotAliased, - AggValueSlot::IsCompleteObject)); + AggValueSlot::IsNotAliased)); } EmitBranchThroughCleanup(ReturnBlock); |