[cfe-commits] r90537 - /cfe/trunk/lib/CodeGen/CGException.cpp

Mike Stump mrs at apple.com
Thu Dec 3 19:55:53 PST 2009


Author: mrs
Date: Thu Dec  3 21:55:53 2009
New Revision: 90537

URL: http://llvm.org/viewvc/llvm-project?rev=90537&view=rev
Log:
Disable for now, doesn't play nice with the temporary 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=90537&r1=90536&r2=90537&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Thu Dec  3 21:55:53 2009
@@ -134,9 +134,12 @@
     } else if (CXXConstructorDecl *CopyCtor
                = RD->getCopyConstructor(CGF.getContext(), 0)) {
       // All temporaries end before we call __cxa_throw
-      CodeGenFunction::CleanupScope TryScope(CGF);
+      // FIXME: Doesn't work well with eh31.C and PopCXXTemporary
+      // CodeGenFunction::CleanupScope TryScope(CGF);
       {
         // These actions are only on the exceptional edge.
+#if 0
+        // FIXME: Doesn't work well with eh31.C and PopCXXTemporary
         CodeGenFunction::DelayedCleanupBlock Scope(CGF, true);
 
         llvm::Constant *FreeExceptionFn = getFreeExceptionFn(CGF);
@@ -144,6 +147,7 @@
           = llvm::Type::getInt8PtrTy(CGF.getLLVMContext());
         llvm::Value *ExceptionPtr = CGF.Builder.CreateBitCast(N, Int8PtrTy);
         CGF.Builder.CreateCall(FreeExceptionFn, ExceptionPtr);
+#endif
       }
 
       llvm::Value *Src = CGF.EmitLValue(E).getAddress();





More information about the cfe-commits mailing list