[cfe-commits] r103249 - /cfe/trunk/lib/AST/DeclPrinter.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Fri May 7 02:11:09 PDT 2010


Author: cornedbee
Date: Fri May  7 04:11:09 2010
New Revision: 103249

URL: http://llvm.org/viewvc/llvm-project?rev=103249&view=rev
Log:
And finally, revert the accidental check-in part of the previous reversion. I'm on a roll.

Modified:
    cfe/trunk/lib/AST/DeclPrinter.cpp

Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=103249&r1=103248&r2=103249&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Fri May  7 04:11:09 2010
@@ -214,11 +214,7 @@
     if (PrintAccess) {
       AccessSpecifier AS = D->getAccess();
 
-      // This is a hack: when a struct is declared in a member declaration
-      // struct outer { struct inner *ptr; }; then we encounter the struct
-      // decl, but it has no access specifier.
-      // The correct solution is to merge this with the member.
-      if (AS != CurAS && AS != AS_none) {
+      if (AS != CurAS) {
         if (Indent)
           this->Indent(Indentation - Policy.Indentation);
         Print(AS);





More information about the cfe-commits mailing list