[cfe-commits] r62676 - /cfe/trunk/lib/Lex/Lexer.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 20 23:45:14 PST 2009
Author: lattner
Date: Wed Jan 21 01:45:14 2009
New Revision: 62676
URL: http://llvm.org/viewvc/llvm-project?rev=62676&view=rev
Log:
a trivial micro optimization to save a load.
Modified:
cfe/trunk/lib/Lex/Lexer.cpp
Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=62676&r1=62675&r2=62676&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Wed Jan 21 01:45:14 2009
@@ -556,11 +556,11 @@
// 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;
}
More information about the cfe-commits
mailing list