diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-02-13 10:38:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-02-13 10:38:52 +0000 |
commit | e087f0700190760060e56ed9fab119e44e6b95f6 (patch) | |
tree | 96f174edb81c85429229923ffbc0b9843143faed /lib/CodeGen/CGVtable.cpp | |
parent | 291b441a095b289c30d9f311fe37a2cf5ed6fd45 (diff) |
Silence unused variable warning in a build without assertions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index c0291486f7..163088e91a 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -16,6 +16,7 @@ #include "clang/AST/CXXInheritance.h" #include "clang/AST/RecordLayout.h" #include "llvm/ADT/DenseSet.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/Format.h" #include <cstdio> @@ -745,7 +746,7 @@ VtableBuilder::layoutVirtualMemberFunctions(BaseSubobject Base, // Check if this virtual member function overrides a method in a primary // base. If this is the case, and the return type doesn't require adjustment // then we can just use the member function from the primary base. - if (const CXXMethodDecl *OverriddenMD = + if (const CXXMethodDecl ATTRIBUTE_UNUSED *OverriddenMD = OverridesMethodInPrimaryBase(MD, PrimaryBases)) { assert(!ReturnTypeConversionRequiresAdjustment(MD, OverriddenMD) && "FIXME: Handle covariant thunks!"); |