aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TypePrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-04 23:37:43 +0000
committerChris Lattner <sabre@nondot.org>2010-09-04 23:37:43 +0000
commit37edc00b6a08dcb094d812782ea4bfedab3b6445 (patch)
tree8ae8025bca10abb9a0d976c5beb48888eeaf9542 /lib/AST/TypePrinter.cpp
parentc3f8c0731ef59ba79753f89f1c108b8134f6ae83 (diff)
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TypePrinter.cpp')
-rw-r--r--lib/AST/TypePrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp
index d3a6b64553..a70fe77da9 100644
--- a/lib/AST/TypePrinter.cpp
+++ b/lib/AST/TypePrinter.cpp
@@ -91,8 +91,7 @@ void TypePrinter::PrintBuiltin(const BuiltinType *T, std::string &S) {
S = T->getName(Policy.LangOpts);
} else {
// Prefix the basic type, e.g. 'int X'.
- S = ' ' + S;
- S = T->getName(Policy.LangOpts) + S;
+ S = T->getName(Policy.LangOpts) + ' ' + S;
}
}