minor code cleanup

llvm-svn: 43512
This commit is contained in:
Chris Lattner 2007-10-30 20:27:44 +00:00
parent 0747bc1df6
commit e0218997ab
1 changed files with 2 additions and 4 deletions

View 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;
}