From e0218997abdc2ba3b51f662d068f3cc09409d717 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Oct 2007 20:27:44 +0000 Subject: [PATCH] minor code cleanup llvm-svn: 43512 --- clang/AST/ASTContext.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }