[cfe-commits] r96098 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Chandler Carruth
chandlerc at gmail.com
Sat Feb 13 02:38:54 PST 2010
Author: chandlerc
Date: Sat Feb 13 04:38:52 2010
New Revision: 96098
URL: http://llvm.org/viewvc/llvm-project?rev=96098&view=rev
Log:
Silence unused variable warning in a build without assertions.
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=96098&r1=96097&r2=96098&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sat Feb 13 04:38:52 2010
@@ -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 @@
// 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!");
More information about the cfe-commits
mailing list