forked from OSchip/llvm-project
Be sure to instantiate rtti for non-polymorphic bases.
llvm-svn: 90586
This commit is contained in:
parent
45805b9a50
commit
afe4764fa5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue