]> granicus.if.org Git - clang/commitdiff
a trivial micro optimization to save a load.
authorChris Lattner <sabre@nondot.org>
Wed, 21 Jan 2009 07:45:14 +0000 (07:45 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Jan 2009 07:45:14 +0000 (07:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62676 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index f7937d5d70f4ea048ad2f6fbeca1dba23d4b00a8..fca8fd4eb165459e1faface0be232f7d34544bf4 100644 (file)
@@ -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;
   }