[cfe-commits] r90586 - /cfe/trunk/lib/CodeGen/CGRTTI.cpp
Mike Stump
mrs at apple.com
Fri Dec 4 12:55:14 PST 2009
Author: mrs
Date: Fri Dec 4 14:55:13 2009
New Revision: 90586
URL: http://llvm.org/viewvc/llvm-project?rev=90586&view=rev
Log:
Be sure to instantiate rtti for non-polymorphic bases.
Modified:
cfe/trunk/lib/CodeGen/CGRTTI.cpp
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=90586&r1=90585&r2=90586&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Fri Dec 4 14:55:13 2009
@@ -231,7 +231,10 @@
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;
More information about the cfe-commits
mailing list