[cfe-commits] r113088 - /cfe/trunk/lib/AST/TypePrinter.cpp

Chris Lattner sabre at nondot.org
Sat Sep 4 16:43:40 PDT 2010


Author: lattner
Date: Sat Sep  4 18:43:40 2010
New Revision: 113088

URL: http://llvm.org/viewvc/llvm-project?rev=113088&view=rev
Log:
revert this, it isn't safe.

Modified:
    cfe/trunk/lib/AST/TypePrinter.cpp

Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=113088&r1=113087&r2=113088&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Sat Sep  4 18:43:40 2010
@@ -91,7 +91,8 @@
     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;
   }
 }
 





More information about the cfe-commits mailing list