From: Chris Lattner Date: Wed, 21 Jan 2009 07:45:14 +0000 (+0000) Subject: a trivial micro optimization to save a load. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1186fa38166a581b51975f0382a45fc3a0733d0;p=clang 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 --- 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; }