diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-05-07 09:11:09 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-05-07 09:11:09 +0000 |
commit | edd558543558e4a43eb71d2a1c9cbe7d45d1e0b2 (patch) | |
tree | bfa637b4586f691f6df6e393ccf26569e0d0850c | |
parent | 0aa866f955deea1851918c2c9fbf60d7afd0ce1f (diff) |
And finally, revert the accidental check-in part of the previous reversion. I'm on a roll.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103249 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 609d64cc7e..5394924797 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -214,11 +214,7 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { 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); |