silence warning in a cleaner way

llvm-svn: 96520
This commit is contained in:
Chris Lattner 2010-02-17 21:42:34 +00:00
parent 5454e0633e
commit d2408f78a5
1 changed files with 1 additions and 2 deletions

View File

@ -1205,8 +1205,7 @@ void VtableBuilder::LayoutVtable() {
void VtableBuilder::LayoutPrimaryAndAndSecondaryVtables(BaseSubobject Base, void VtableBuilder::LayoutPrimaryAndAndSecondaryVtables(BaseSubobject Base,
bool BaseIsVirtual) { bool BaseIsVirtual) {
const CXXRecordDecl *RD ATTRIBUTE_UNUSED = Base.getBase(); assert(Base.getBase()->isDynamicClass() && "class does not have a vtable!");
assert(RD->isDynamicClass() && "class does not have a vtable!");
// Add vcall and vbase offsets for this vtable. // Add vcall and vbase offsets for this vtable.
VisitedVirtualBasesSetTy VBases; VisitedVirtualBasesSetTy VBases;