From 2d99833e8c956775f2183601cd120b65b569c867 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Oct 2007 20:27:44 +0000 Subject: [PATCH] minor code cleanup git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43512 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/ASTContext.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.50.1