Cleanup some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92122 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp
index 3049915..63e8679 100644
--- a/lib/CodeGen/CGException.cpp
+++ b/lib/CodeGen/CGException.cpp
@@ -149,7 +149,6 @@
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 @@
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