[cfe-commits] r43512 - /cfe/trunk/AST/ASTContext.cpp

Chris Lattner sabre at nondot.org
Tue Oct 30 13:27:45 PDT 2007


Author: lattner
Date: Tue Oct 30 15:27:44 2007
New Revision: 43512

URL: http://llvm.org/viewvc/llvm-project?rev=43512&view=rev
Log:
minor code cleanup

Modified:
    cfe/trunk/AST/ASTContext.cpp

Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=43512&r1=43511&r2=43512&view=diff

==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Tue Oct 30 15:27:44 2007
@@ -880,11 +880,9 @@
 
 // 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;
 }





More information about the cfe-commits mailing list