summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPExpressions.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2014-10-24 17:31:32 +0000
committerSerge Pavlov <sepavloff@gmail.com>2014-10-24 17:31:32 +0000
commitd024f528b474bd0446ced3eb0fe660e71bfa87eb (patch)
tree84b2bbe99eae74576edc05c173eb55279045880b /clang/lib/Lex/PPExpressions.cpp
parente9a5f03716f937380074d8617cddb833bffede1f (diff)
downloadbcm5719-llvm-d024f528b474bd0446ced3eb0fe660e71bfa87eb.tar.gz
bcm5719-llvm-d024f528b474bd0446ced3eb0fe660e71bfa87eb.zip
Use enumerators instead of hardcoded integers when processing macro names.
llvm-svn: 220572
Diffstat (limited to 'clang/lib/Lex/PPExpressions.cpp')
-rw-r--r--clang/lib/Lex/PPExpressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp
index 8408aa2314d..a3f5d938ce0 100644
--- a/clang/lib/Lex/PPExpressions.cpp
+++ b/clang/lib/Lex/PPExpressions.cpp
@@ -103,7 +103,7 @@ static bool EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT,
}
// If we don't have a pp-identifier now, this is an error.
- if (PP.CheckMacroName(PeekTok, 0))
+ if (PP.CheckMacroName(PeekTok, MU_Other))
return true;
// Otherwise, we got an identifier, is it defined to something?
OpenPOWER on IntegriCloud