summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.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/CGException.cpp
parentbd9c910c8c0e30d646c2e1a052297df2032117cb (diff)
downloadbcm5719-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/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index dcb921261a1..95e0030866d 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -373,7 +373,8 @@ static void EmitAnyExprToExn(CodeGenFunction &CGF, const Expr *e,
// evaluated but before the exception is caught. But the best way
// to handle that is to teach EmitAggExpr to do the final copy
// differently if it can't be elided.
- CGF.EmitAnyExprToMem(e, typedAddr, e->getType().getQualifiers());
+ CGF.EmitAnyExprToMem(e, typedAddr, e->getType().getQualifiers(),
+ /*IsInit*/ true);
// Deactivate the cleanup block.
CGF.DeactivateCleanupBlock(cleanup, cast<llvm::Instruction>(typedAddr));
@@ -1047,8 +1048,7 @@ static void InitCatchParam(CodeGenFunction &CGF,
if (!copyExpr) {
llvm::Value *rawAdjustedExn = CallBeginCatch(CGF, Exn, true);
llvm::Value *adjustedExn = CGF.Builder.CreateBitCast(rawAdjustedExn, PtrTy);
- CGF.EmitAggregateCopy(ParamAddr, adjustedExn, CatchType,
- /*volatile*/ false, 0, /*destIsCompleteObject*/ true);
+ CGF.EmitAggregateCopy(ParamAddr, adjustedExn, CatchType);
return;
}
@@ -1076,8 +1076,7 @@ static void InitCatchParam(CodeGenFunction &CGF,
AggValueSlot::forAddr(ParamAddr, Alignment, Qualifiers(),
AggValueSlot::IsNotDestructed,
AggValueSlot::DoesNotNeedGCBarriers,
- AggValueSlot::IsNotAliased,
- AggValueSlot::IsCompleteObject));
+ AggValueSlot::IsNotAliased));
// Leave the terminate scope.
CGF.EHStack.popTerminate();
OpenPOWER on IntegriCloud