summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-30 00:22:38 +0000
committerMike Stump <mrs@apple.com>2009-07-30 00:22:38 +0000
commit3dc7eb94403c9de3c5ec2cc0ffd9c4b7f57ba5fb (patch)
tree7a35d514fee4bc3d18759ba9d45f15bfea8b0a38 /clang/lib/CodeGen
parent13ddd8514f8a852ac6fbb008e1e0ef4f61cc6270 (diff)
downloadbcm5719-llvm-3dc7eb94403c9de3c5ec2cc0ffd9c4b7f57ba5fb.tar.gz
bcm5719-llvm-3dc7eb94403c9de3c5ec2cc0ffd9c4b7f57ba5fb.zip
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. llvm-svn: 77556
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenTypes.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index f88ed048fd3..c20e90e8ce6 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/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<CXXRecordDecl>(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()) {
OpenPOWER on IntegriCloud