forked from OSchip/llvm-project
And finally, revert the accidental check-in part of the previous reversion. I'm on a roll.
llvm-svn: 103249
This commit is contained in:
parent
0b4e312566
commit
2e702738bb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue