diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-18 08:02:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-18 08:02:48 +0000 |
commit | 56b05c8829efd13b7e5b333f8f587c71d025c67d (patch) | |
tree | b57db418a553bcff7fe3205cc4978d4b7241acb4 /lib/Lex/PPExpressions.cpp | |
parent | 3692b09faa9fe346f39bc922db6dce48cdcc3f63 (diff) |
remove one more Preprocessor::Diag method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59512 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 4042604391..b3ae9d9860 100644 --- a/lib/Lex/PPExpressions.cpp +++ b/lib/Lex/PPExpressions.cpp @@ -91,7 +91,7 @@ static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, // into a simple 0, unless it is the C++ keyword "true", in which case it // turns into "1". if (II->getPPKeywordID() != tok::pp_defined) { - PP.Diag(PeekTok, diag::warn_pp_undef_identifier, II->getName()); + PP.Diag(PeekTok, diag::warn_pp_undef_identifier) << II->getName(); Result.Val = II->getTokenID() == tok::kw_true; Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. Result.setRange(PeekTok.getLocation()); |