diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-24 03:52:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 03:52:59 +0000 |
commit | bb49c3ee5d270485f4b273691fd14bc97403fa5d (patch) | |
tree | 926b8f7d3b45704c58b650bcd725f317169f5223 /lib/AST/ASTContext.cpp | |
parent | 077bf5e2f48acfa9e7d69429b6e4ba86ea14896d (diff) |
simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 61e8c99aa4..b87b1f4f2e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1449,7 +1449,8 @@ QualType ASTContext::getObjCFastEnumerationStateType() // typedef <type> BOOL; static bool isTypeTypedefedAsBOOL(QualType T) { if (const TypedefType *TT = dyn_cast<TypedefType>(T)) - return !strcmp(TT->getDecl()->getIdentifierName(), "BOOL"); + if (IdentifierInfo *II = TT->getDecl()->getIdentifier()) + return II->isStr("BOOL"); return false; } |