[cfe-commits] r90026 - /cfe/trunk/lib/CodeGen/CGClass.cpp

Eli Friedman eli.friedman at gmail.com
Fri Nov 27 19:35:46 PST 2009


Author: efriedma
Date: Fri Nov 27 21:35:45 2009
New Revision: 90026

URL: http://llvm.org/viewvc/llvm-project?rev=90026&view=rev
Log:
Tests now pass with the assertion.


Modified:
    cfe/trunk/lib/CodeGen/CGClass.cpp

Modified: cfe/trunk/lib/CodeGen/CGClass.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGClass.cpp?rev=90026&r1=90025&r2=90026&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGClass.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGClass.cpp Fri Nov 27 21:35:45 2009
@@ -31,9 +31,6 @@
     const ASTRecordLayout &Layout = Context.getASTRecordLayout(Element.Class);
     
     const CXXBaseSpecifier *BS = Element.Base;
-    // FIXME: enable test3 from virt.cc to not abort.
-    if (BS->isVirtual())
-      return 0;
     assert(!BS->isVirtual() && "Should not see virtual bases here!");
     
     const CXXRecordDecl *Base = 





More information about the cfe-commits mailing list