From 37edc00b6a08dcb094d812782ea4bfedab3b6445 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 4 Sep 2010 23:37:43 +0000 Subject: [PATCH] tidy up git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113087 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/Type.cpp | 2 +- lib/AST/TypePrinter.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index ca10532e72..ccd26f8ba2 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -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; diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index d3a6b64553..a70fe77da9 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -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; } } -- 2.40.0