From 8256b970a3c1ede22db82387c091e54f651a2e80 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 21 Jan 2009 07:45:14 +0000 Subject: [PATCH] a trivial micro optimization to save a load. llvm-svn: 62676 --- clang/lib/Lex/Lexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index f7937d5d70f4..fca8fd4eb165 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/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; }