diff --git a/clang/AST/ASTContext.cpp b/clang/AST/ASTContext.cpp index 40b7b647e945..93ec288270e4 100644 --- a/clang/AST/ASTContext.cpp +++ b/clang/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; }