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 | 469fdc6af3c3e6c77a2e79639f4063b6aab1e92a (patch) | |
tree | 39abc12515f7c915146d8e920bfd89738ee2889c /clang/lib/Lex/PPExpressions.cpp | |
parent | cb2147e58c16ca1c93571b554912ca28158d91d7 (diff) | |
download | bcm5719-llvm-469fdc6af3c3e6c77a2e79639f4063b6aab1e92a.tar.gz bcm5719-llvm-469fdc6af3c3e6c77a2e79639f4063b6aab1e92a.zip |
simplification and speedup
llvm-svn: 69963
Diffstat (limited to 'clang/lib/Lex/PPExpressions.cpp')
-rw-r--r-- | clang/lib/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp index 3cba06f4603..0c3aa023610 100644 --- a/clang/lib/Lex/PPExpressions.cpp +++ b/clang/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; |