[cfe-commits] r92122 - /cfe/trunk/lib/CodeGen/CGException.cpp
Mike Stump
mrs at apple.com
Wed Dec 23 22:52:05 PST 2009
Author: mrs
Date: Thu Dec 24 00:52:05 2009
New Revision: 92122
URL: http://llvm.org/viewvc/llvm-project?rev=92122&view=rev
Log:
Cleanup some dead code.
Modified:
cfe/trunk/lib/CodeGen/CGException.cpp
Modified: cfe/trunk/lib/CodeGen/CGException.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGException.cpp?rev=92122&r1=92121&r2=92122&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Thu Dec 24 00:52:05 2009
@@ -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
More information about the cfe-commits
mailing list