summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclPrinter.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-23 03:22:10 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-23 03:22:10 +0000
commita593419593e4ee6b4961d836dfcb2b9b58870ab7 (patch)
tree26bdd7c55da80412a9c44a50adbd2f20c1c12177 /clang/lib/AST/DeclPrinter.cpp
parenta4bb292095482300a74170e4e297055549a38736 (diff)
downloadbcm5719-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.cpp6
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 << "...";
OpenPOWER on IntegriCloud