From: Chris Lattner Date: Wed, 17 Feb 2010 21:42:34 +0000 (+0000) Subject: silence warning in a cleaner way X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04a2311982d34269f84362a02a7a76a3e47675bc;p=clang silence warning in a cleaner way git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96520 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;