From: Mike Stump Date: Thu, 24 Dec 2009 06:52:05 +0000 (+0000) Subject: Cleanup some dead code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63df2ae96bd0477a7d516814750640b7ce348a71;p=clang 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 30499157f1..63e8679408 100644 --- a/lib/CodeGen/CGException.cpp +++ b/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