]> granicus.if.org Git - clang/commitdiff
minor code cleanup
authorChris Lattner <sabre@nondot.org>
Tue, 30 Oct 2007 20:27:44 +0000 (20:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Oct 2007 20:27:44 +0000 (20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43512 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 40b7b647e945711924073061ce8a0ddeede0d208..93ec288270e43ab5271c2aa25149836cb38af8b9 100644 (file)
@@ -880,11 +880,9 @@ QualType ASTContext::getCFConstantStringType() {
 
 // This returns true if a type has been typedefed to BOOL:
 // typedef <type> BOOL;
-static bool isTypeTypedefedAsBOOL(QualType T)
-{
+static bool isTypeTypedefedAsBOOL(QualType T) {
   if (const TypedefType *TT = dyn_cast<TypedefType>(T))
-      if (!strcmp(TT->getDecl()->getName(), "BOOL"))
-        return true;
+    return !strcmp(TT->getDecl()->getName(), "BOOL");
         
   return false;
 }