From: Chris Lattner Date: Tue, 30 Oct 2007 20:27:44 +0000 (+0000) Subject: minor code cleanup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d99833e8c956775f2183601cd120b65b569c867;p=clang minor code cleanup git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43512 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index 40b7b647e9..93ec288270 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -880,11 +880,9 @@ QualType ASTContext::getCFConstantStringType() { // This returns true if a type has been typedefed to BOOL: // typedef BOOL; -static bool isTypeTypedefedAsBOOL(QualType T) -{ +static bool isTypeTypedefedAsBOOL(QualType T) { if (const TypedefType *TT = dyn_cast(T)) - if (!strcmp(TT->getDecl()->getName(), "BOOL")) - return true; + return !strcmp(TT->getDecl()->getName(), "BOOL"); return false; }