summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-24 06:52:05 +0000
committerMike Stump <mrs@apple.com>2009-12-24 06:52:05 +0000
commit4a779b93e4b56292366b0144ff10b8c5ec839102 (patch)
treedb20cc41de7d6117b8f8a52064c02807518714a9 /clang/lib/CodeGen/CGException.cpp
parent51f1ca852fcba427f4a83a1a90203f0b04051d10 (diff)
downloadbcm5719-llvm-4a779b93e4b56292366b0144ff10b8c5ec839102.tar.gz
bcm5719-llvm-4a779b93e4b56292366b0144ff10b8c5ec839102.zip
Cleanup some dead code.
llvm-svn: 92122
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 30499157f14..63e8679408e 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -149,7 +149,6 @@ static void CopyObject(CodeGenFunction &CGF, const Expr *E,
CGF.EmitAggExpr(E, This, false);
} else if (CXXConstructorDecl *CopyCtor
= RD->getCopyConstructor(CGF.getContext(), 0)) {
- llvm::BasicBlock *PrevLandingPad = CGF.getInvokeDest();
llvm::Value *CondPtr = 0;
if (CGF.Exceptions) {
CodeGenFunction::EHCleanupBlock Cleanup(CGF);
@@ -177,13 +176,12 @@ static void CopyObject(CodeGenFunction &CGF, const Expr *E,
llvm::Value *Src = CGF.EmitLValue(E).getAddress();
- //CGF.setInvokeDest(PrevLandingPad);
if (CondPtr)
CGF.Builder.CreateStore(llvm::ConstantInt::getFalse(CGF.getLLVMContext()),
CondPtr);
llvm::BasicBlock *TerminateHandler = CGF.getTerminateHandler();
- PrevLandingPad = CGF.getInvokeDest();
+ llvm::BasicBlock *PrevLandingPad = CGF.getInvokeDest();
CGF.setInvokeDest(TerminateHandler);
// Stolen from EmitClassAggrMemberwiseCopy
OpenPOWER on IntegriCloud