[cfe-commits] r129860 - /cfe/trunk/lib/AST/DeclCXX.cpp

Douglas Gregor dgregor at apple.com
Wed Apr 20 10:22:00 PDT 2011


Author: dgregor
Date: Wed Apr 20 12:22:00 2011
New Revision: 129860

URL: http://llvm.org/viewvc/llvm-project?rev=129860&view=rev
Log:
Eliminate an uninteresting assertion; invalid code involving
out-of-line destructors can result in the addition of redundant
destructors to a class. It's not harmful to the AST. Fixes
<rdar://problem/9158632>.

Modified:
    cfe/trunk/lib/AST/DeclCXX.cpp

Modified: cfe/trunk/lib/AST/DeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclCXX.cpp?rev=129860&r1=129859&r2=129860&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclCXX.cpp (original)
+++ cfe/trunk/lib/AST/DeclCXX.cpp Wed Apr 20 12:22:00 2011
@@ -813,8 +813,6 @@
     return 0;
 
   CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(*I);
-  assert(++I == E && "Found more than one destructor!");
-
   return Dtor;
 }
 





More information about the cfe-commits mailing list