diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-14 02:09:55 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-14 02:09:55 +0000 |
commit | 09bdc14343983d2cb845778c5d9b4499778a2b40 (patch) | |
tree | fd60ef7714efcbda1702a8ea7bd5529cd03e4bb6 /lib/Lex/PPExpressions.cpp | |
parent | fb7eadc9ed0ec843961bb2fc5102b03fee6f2c9a (diff) |
Use %select to merge similar diagnostics. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPExpressions.cpp')
-rw-r--r-- | lib/Lex/PPExpressions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/PPExpressions.cpp b/lib/Lex/PPExpressions.cpp index d2156d49cf..c40598c067 100644 --- a/lib/Lex/PPExpressions.cpp +++ b/lib/Lex/PPExpressions.cpp @@ -549,12 +549,12 @@ static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, // value was negative, warn about it. if (ValueLive && Res.isUnsigned()) { if (!LHS.isUnsigned() && LHS.Val.isNegative()) - PP.Diag(OpLoc, diag::warn_pp_convert_lhs_to_positive) + PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 0 << LHS.Val.toString(10, true) + " to " + LHS.Val.toString(10, false) << LHS.getRange() << RHS.getRange(); if (!RHS.isUnsigned() && RHS.Val.isNegative()) - PP.Diag(OpLoc, diag::warn_pp_convert_rhs_to_positive) + PP.Diag(OpLoc, diag::warn_pp_convert_to_positive) << 1 << RHS.Val.toString(10, true) + " to " + RHS.Val.toString(10, false) << LHS.getRange() << RHS.getRange(); |