diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-21 07:45:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-21 07:45:14 +0000 |
commit | d1186fa38166a581b51975f0382a45fc3a0733d0 (patch) | |
tree | d7712d6962750e5808144e0e8fdfdc412b86ac8a /lib/Lex/Lexer.cpp | |
parent | 6a170eb3ea6d6319277becabef68eb1a26bf8766 (diff) |
a trivial micro optimization to save a load.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r-- | lib/Lex/Lexer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index f7937d5d70..fca8fd4eb1 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -556,11 +556,11 @@ FinishIdentifier: // Fill in Result.IdentifierInfo, looking up the identifier in the // identifier table. - PP->LookUpIdentifierInfo(Result, IdStart); + IdentifierInfo *II = PP->LookUpIdentifierInfo(Result, IdStart); // Finally, now that we know we have an identifier, pass this off to the // preprocessor, which may macro expand it or something. - if (Result.getIdentifierInfo()->isHandleIdentifierCase()) + if (II->isHandleIdentifierCase()) PP->HandleIdentifier(Result); return; } |