]> granicus.if.org Git - clang/commitdiff
Fix think-o, attributes can't come *within* the type of the variable.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 13 Feb 2010 10:42:55 +0000 (10:42 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 13 Feb 2010 10:42:55 +0000 (10:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96099 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index 163088e91a295a92a47cebd2ab907f58c276b99a..8285a1fdcf927d1facfb30eb5e8765e2e2cbc41f 100644 (file)
@@ -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!");