From: Chris Lattner Date: Thu, 23 Aug 2007 05:22:10 +0000 (+0000) Subject: Update to match the API from LLVM mainline. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2024b280ac2e76bd6a54e76869602d776d76625;p=clang Update to match the API from LLVM mainline. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41312 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Lex/PPExpressions.cpp b/Lex/PPExpressions.cpp index 77098724b5..f43243ea16 100644 --- a/Lex/PPExpressions.cpp +++ b/Lex/PPExpressions.cpp @@ -434,10 +434,10 @@ static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec, if (ValueLive && Res.isUnsigned()) { if (!LHS.isUnsigned() && LHS.isNegative()) PP.Diag(OpToken, diag::warn_pp_convert_lhs_to_positive, - LHS.toString(10, true) + " to " + LHS.toString(10, false)); + LHS.toStringSigned() + " to " + LHS.toStringUnsigned()); if (!RHS.isUnsigned() && RHS.isNegative()) PP.Diag(OpToken, diag::warn_pp_convert_rhs_to_positive, - RHS.toString(10, true) + " to " + RHS.toString(10, false)); + RHS.toStringSigned() + " to " + RHS.toStringUnsigned()); } LHS.setIsUnsigned(Res.isUnsigned()); RHS.setIsUnsigned(Res.isUnsigned());