]> granicus.if.org Git - clang/commitdiff
Silence GCC warning by marking an assert-only variable as unused.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 17 Feb 2010 06:24:18 +0000 (06:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 17 Feb 2010 06:24:18 +0000 (06:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

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