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

Mike Stump mrs at apple.com
Tue Dec 8 13:46:41 PST 2009


Author: mrs
Date: Tue Dec  8 15:46:41 2009
New Revision: 90882

URL: http://llvm.org/viewvc/llvm-project?rev=90882&view=rev
Log:
Remove some old code.  WIP.

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=90882&r1=90881&r2=90882&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGException.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGException.cpp Tue Dec  8 15:46:41 2009
@@ -565,16 +565,11 @@
         }
         ExcObject = Builder.CreateBitCast(ExcObject, ConvertType(CatchType));
         EmitLocalBlockVarDecl(*CatchParam);
-#if 0
-        // FIXME: objects with ctors, references
-        Builder.CreateStore(ExcObject, GetAddrOfLocalVar(CatchParam));
-#else
         // FIXME: we need to do this sooner so that the EH region for the
         // cleanup doesn't start until after the ctor completes, use a decl
         // init?
         CopyObject(*this, CatchParam->getType().getNonReferenceType(),
                    WasPointer, ExcObject, GetAddrOfLocalVar(CatchParam));
-#endif
         setInvokeDest(MatchHandler);
       }
 





More information about the cfe-commits mailing list