From 04a2311982d34269f84362a02a7a76a3e47675bc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 17 Feb 2010 21:42:34 +0000 Subject: [PATCH] silence warning in a cleaner way git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96520 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGVtable.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.40.0