summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-21 07:45:14 +0000
committerChris Lattner <sabre@nondot.org>2009-01-21 07:45:14 +0000
commit8256b970a3c1ede22db82387c091e54f651a2e80 (patch)
tree6024847ecad43f842c7aa2e5e6da9b9121ff64f7 /clang
parentad89ec013f5f9d99fc436723153f00123e9a8ebe (diff)
downloadbcm5719-llvm-8256b970a3c1ede22db82387c091e54f651a2e80.tar.gz
bcm5719-llvm-8256b970a3c1ede22db82387c091e54f651a2e80.zip
a trivial micro optimization to save a load.
llvm-svn: 62676
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Lex/Lexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index f7937d5d70f..fca8fd4eb16 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;
}
OpenPOWER on IntegriCloud