diff options
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index f5bd33e548..fbe4742455 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -1205,8 +1205,7 @@ void VtableBuilder::LayoutVtable() { void VtableBuilder::LayoutPrimaryAndAndSecondaryVtables(BaseSubobject Base, bool BaseIsVirtual) { - const CXXRecordDecl *RD ATTRIBUTE_UNUSED = Base.getBase(); - assert(RD->isDynamicClass() && "class does not have a vtable!"); + assert(Base.getBase()->isDynamicClass() && "class does not have a vtable!"); // Add vcall and vbase offsets for this vtable. VisitedVirtualBasesSetTy VBases; |