From 59742de0f9d4fbd421b69ed0c1b6c7a6d83339fb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 4 Sep 2010 23:43:40 +0000 Subject: [PATCH] revert this, it isn't safe. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113088 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/TypePrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.40.0