Be sure to instantiate rtti for non-polymorphic bases.

llvm-svn: 90586
This commit is contained in:
Mike Stump 2009-12-04 20:55:13 +00:00
parent 45805b9a50
commit afe4764fa5
1 changed files with 4 additions and 1 deletions

View File

@ -231,7 +231,10 @@ public:
e = RD->bases_end(); i != e; ++i) {
const CXXRecordDecl *Base =
cast<CXXRecordDecl>(i->getType()->getAs<RecordType>()->getDecl());
info.push_back(CGM.GenerateRTTIRef(Base));
if (Base->isPolymorphic())
info.push_back(CGM.GenerateRTTIRef(Base));
else
info.push_back(CGM.GenerateRTTI(Base));
if (simple)
break;
int64_t offset;