[cfe-commits] r96099 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Chandler Carruth chandlerc at gmail.com
Sat Feb 13 02:42:55 PST 2010


Author: chandlerc
Date: Sat Feb 13 04:42:55 2010
New Revision: 96099

URL: http://llvm.org/viewvc/llvm-project?rev=96099&view=rev
Log:
Fix think-o, attributes can't come *within* the type of the variable.

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=96099&r1=96098&r2=96099&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sat Feb 13 04:42:55 2010
@@ -746,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 ATTRIBUTE_UNUSED *OverriddenMD = 
+    if (const CXXMethodDecl *OverriddenMD ATTRIBUTE_UNUSED = 
           OverridesMethodInPrimaryBase(MD, PrimaryBases)) {
       assert(!ReturnTypeConversionRequiresAdjustment(MD, OverriddenMD)
              && "FIXME: Handle covariant thunks!");





More information about the cfe-commits mailing list