diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-24 07:15:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-24 07:15:22 +0000 |
commit | 09546d46c320da58fe89f5d6cf32db78cc2d7b96 (patch) | |
tree | d825c2eb71c5ec87c6af2ddfcda1145fc98e86b6 /lib/Lex/PPExpressions.cpp | |
parent | f6274060c07f9678c2f3f5eac92b4ffa0fb1dbcf (diff) |
simplification and speedup
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPExpressions.cpp')
-rw-r--r-- | lib/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPExpressions.cpp b/lib/Lex/PPExpressions.cpp index 3cba06f460..0c3aa02361 100644 --- a/lib/Lex/PPExpressions.cpp +++ b/lib/Lex/PPExpressions.cpp @@ -90,7 +90,7 @@ static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, // If this identifier isn't 'defined' and it wasn't macro expanded, it turns // into a simple 0, unless it is the C++ keyword "true", in which case it // turns into "1". - if (II->getPPKeywordID() != tok::pp_defined) { + if (!II->isStr("defined")) { if (ValueLive) PP.Diag(PeekTok, diag::warn_pp_undef_identifier) << II; Result.Val = II->getTokenID() == tok::kw_true; |