summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-02-13 10:42:55 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-02-13 10:42:55 +0000
commita932bbca751d017cd51a487d7add215efb0bd82f (patch)
treee104cf06e98f1a7b76bc0fd9085c1d28d06d758b
parent94eab4ad0407f0ceb1f7ae72686e16b6f1cc27e4 (diff)
downloadbcm5719-llvm-a932bbca751d017cd51a487d7add215efb0bd82f.tar.gz
bcm5719-llvm-a932bbca751d017cd51a487d7add215efb0bd82f.zip
Fix think-o, attributes can't come *within* the type of the variable.
llvm-svn: 96099
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 163088e91a2..8285a1fdcf9 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -746,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 ATTRIBUTE_UNUSED *OverriddenMD =
+ if (const CXXMethodDecl *OverriddenMD ATTRIBUTE_UNUSED =
OverridesMethodInPrimaryBase(MD, PrimaryBases)) {
assert(!ReturnTypeConversionRequiresAdjustment(MD, OverriddenMD)
&& "FIXME: Handle covariant thunks!");
OpenPOWER on IntegriCloud