[cfe-commits] r80722 - /cfe/trunk/lib/CodeGen/CGCXX.cpp
Anders Carlsson
andersca at mac.com
Tue Sep 1 14:12:16 PDT 2009
Author: andersca
Date: Tue Sep 1 16:12:16 2009
New Revision: 80722
URL: http://llvm.org/viewvc/llvm-project?rev=80722&view=rev
Log:
Assert that we don't have any virtual bases. We can emit dtors for polymorphics classes just fune.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=80722&r1=80721&r2=80722&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Tue Sep 1 16:12:16 2009
@@ -1744,8 +1744,8 @@
/// FIXME: This needs to take a CXXDtorType.
void CodeGenFunction::EmitDtorEpilogue(const CXXDestructorDecl *DD) {
const CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(DD->getDeclContext());
- assert(!ClassDecl->isPolymorphic() &&
- "FIXME. polymorphic destruction not supported");
+ assert(!ClassDecl->getNumVBases() &&
+ "FIXME: Destruction of virtual bases not supported");
(void)ClassDecl; // prevent warning.
for (CXXDestructorDecl::destr_const_iterator *B = DD->destr_begin(),
More information about the cfe-commits
mailing list