]> granicus.if.org Git - clang/commitdiff
Cleanups on exceptional edges don't work at all, yet. This doesn't
authorMike Stump <mrs@apple.com>
Wed, 2 Dec 2009 23:46:02 +0000 (23:46 +0000)
committerMike Stump <mrs@apple.com>
Wed, 2 Dec 2009 23:46:02 +0000 (23:46 +0000)
catch very many of them and if we caught all of them, the errors would
be annoying.  I'm working on this next.  WIP.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90358 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGException.cpp

index 02bc05a68e7b628a5f5d52e3a7f2587a66bf8b8b..bf9067e18838d06b1cabdac842bf772f79ca956e 100644 (file)
@@ -220,11 +220,6 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) {
   }
   
   QualType ThrowType = E->getSubExpr()->getType();
-  // FIXME: Handle cleanup.
-  if (!CleanupEntries.empty()){
-    ErrorUnsupported(E, "throw expression with cleanup entries");
-    return;
-  }
   
   // Now allocate the exception object.
   const llvm::Type *SizeTy = ConvertType(getContext().getSizeType());