diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-23 03:22:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-23 03:22:10 +0000 |
commit | a593419593e4ee6b4961d836dfcb2b9b58870ab7 (patch) | |
tree | 26bdd7c55da80412a9c44a50adbd2f20c1c12177 /clang/lib/AST/DeclPrinter.cpp | |
parent | a4bb292095482300a74170e4e297055549a38736 (diff) | |
download | bcm5719-llvm-a593419593e4ee6b4961d836dfcb2b9b58870ab7.tar.gz bcm5719-llvm-a593419593e4ee6b4961d836dfcb2b9b58870ab7.zip |
AST printer: fix double space before base class with no access specifier.
llvm-svn: 213719
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index ec7ba65cb4e..160e48b6d95 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -784,9 +784,11 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) { Out << "virtual "; AccessSpecifier AS = Base->getAccessSpecifierAsWritten(); - if (AS != AS_none) + if (AS != AS_none) { Print(AS); - Out << " " << Base->getType().getAsString(Policy); + Out << " "; + } + Out << Base->getType().getAsString(Policy); if (Base->isPackExpansion()) Out << "..."; |