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 | 94eab4ad0407f0ceb1f7ae72686e16b6f1cc27e4 (patch) | |
| tree | d624bfe710f4c6ac07fe5b9be435f8baf7fcda8d /clang/lib | |
| parent | 6b4756a224ba5779d80f47a48fa5447082284982 (diff) | |
| download | bcm5719-llvm-94eab4ad0407f0ceb1f7ae72686e16b6f1cc27e4.tar.gz bcm5719-llvm-94eab4ad0407f0ceb1f7ae72686e16b6f1cc27e4.zip | |
Silence unused variable warning in a build without assertions.
llvm-svn: 96098
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index c0291486f7b..163088e91a2 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/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!"); |

