[cfe-commits] r96459 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Feb 16 22:24:18 PST 2010
Author: chandlerc
Date: Wed Feb 17 00:24:18 2010
New Revision: 96459
URL: http://llvm.org/viewvc/llvm-project?rev=96459&view=rev
Log:
Silence GCC warning by marking an assert-only variable as unused.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=96459&r1=96458&r2=96459&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Wed Feb 17 00:24:18 2010
@@ -1168,7 +1168,7 @@
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.
More information about the cfe-commits
mailing list