]> granicus.if.org Git - clang/commitdiff
tidy up
authorChris Lattner <sabre@nondot.org>
Sat, 4 Sep 2010 23:37:43 +0000 (23:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Sep 2010 23:37:43 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113087 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Type.cpp
lib/AST/TypePrinter.cpp

index ca10532e729e1729e58379da3fd765a709f94bab..ccd26f8ba2efd76cc92cf8e66193003f48e759dd 100644 (file)
@@ -1040,7 +1040,7 @@ void FunctionProtoType::Profile(llvm::FoldingSetNodeID &ID) {
 }
 
 /// LookThroughTypedefs - Return the ultimate type this typedef corresponds to
-/// potentially looking through *all* consequtive typedefs.  This returns the
+/// potentially looking through *all* consecutive typedefs.  This returns the
 /// sum of the type qualifiers, so if you have:
 ///   typedef const int A;
 ///   typedef volatile A B;
index d3a6b645537c831240180ec749c22267eb21fe60..a70fe77da9afa81c2d20193d495cd5a5caba8701 100644 (file)
@@ -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;
   }
 }