From: Chris Lattner Date: Sat, 4 Sep 2010 23:43:40 +0000 (+0000) Subject: revert this, it isn't safe. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59742de0f9d4fbd421b69ed0c1b6c7a6d83339fb;p=clang revert this, it isn't safe. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index a70fe77da9..d3a6b64553 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -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; } }