зеркало из https://github.com/microsoft/clang-1.git
Be sure to instantiate rtti for non-polymorphic bases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
30a45344c8
Коммит
1c4269a9d9
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче