]> granicus.if.org Git - clang/commitdiff
revert this, it isn't safe.
authorChris Lattner <sabre@nondot.org>
Sat, 4 Sep 2010 23:43:40 +0000 (23:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Sep 2010 23:43:40 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/TypePrinter.cpp

index a70fe77da9afa81c2d20193d495cd5a5caba8701..d3a6b645537c831240180ec749c22267eb21fe60 100644 (file)
@@ -91,7 +91,8 @@ void TypePrinter::PrintBuiltin(const BuiltinType *T, std::string &S) {
     S = T->getName(Policy.LangOpts);
   } else {
     // Prefix the basic type, e.g. 'int X'.
-    S = T->getName(Policy.LangOpts) + ' ' + S;
+    S = ' ' + S;
+    S = T->getName(Policy.LangOpts) + S;
   }
 }