aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-02-17 06:24:18 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-02-17 06:24:18 +0000
commitdaa401cea267404c66a3123284da79f9026c55f5 (patch)
treea6e73f619f6fbab4b55f82ecc4e95cb351edc770 /lib/CodeGen/CGVtable.cpp
parentd9a67046ae32f5da7811e003a5dd1bca7f136b5d (diff)
Silence GCC warning by marking an assert-only variable as unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index d2aba20e37..2b8b064f26 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -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.