From 3dee6efcad9ad56d14f7edd1c29924f0b876a7f9 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 30 Jul 2009 00:22:38 +0000 Subject: Add ability to layout the vtable pointer in trivial cases. I noticed that we would silently do bad things with virtual bases in the layout code, so, we just turn them off. When people do better things with them, we can turn them back on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77556 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/CodeGen/CodeGenTypes.cpp') diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index f88ed048fd..c20e90e8ce 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -381,8 +381,6 @@ const llvm::Type *CodeGenTypes::ConvertTagDeclType(const TagDecl *TD) { // FIXME. This may have to move to a better place. if (const CXXRecordDecl *RD = dyn_cast(TD)) { - assert(!RD->isPolymorphic() && - "FIXME: We don't support polymorphic classes yet!"); for (CXXRecordDecl::base_class_const_iterator i = RD->bases_begin(), e = RD->bases_end(); i != e; ++i) { if (!i->isVirtual()) { -- cgit v1.2.3