diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-17 07:19:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-17 07:19:51 +0000 |
commit | 5d1cfa12296b0620ddf9ff259e3aa7a0b87ecfa9 (patch) | |
tree | 2c9a68c7398b49205b608dd5c6aebb1497b6e89c /clang/lib/Sema/SemaStmt.cpp | |
parent | 17f7165f849c17004b37b6db02b91d80cecb1855 (diff) | |
download | bcm5719-llvm-5d1cfa12296b0620ddf9ff259e3aa7a0b87ecfa9.tar.gz bcm5719-llvm-5d1cfa12296b0620ddf9ff259e3aa7a0b87ecfa9.zip |
various updates to match r54873 on mainline.
llvm-svn: 54874
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index abc7f8865aa..6bc6f3fb0ce 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -229,7 +229,7 @@ void Sema::ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, // If the input was signed and negative and the output is unsigned, // warn. if (!NewSign && OldVal.isSigned() && OldVal.isNegative()) - Diag(Loc, DiagID, OldVal.toString(), Val.toString()); + Diag(Loc, DiagID, OldVal.toString(10), Val.toString(10)); Val.setIsSigned(NewSign); } else if (NewWidth < Val.getBitWidth()) { @@ -240,7 +240,7 @@ void Sema::ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, ConvVal.extend(Val.getBitWidth()); ConvVal.setIsSigned(Val.isSigned()); if (ConvVal != Val) - Diag(Loc, DiagID, Val.toString(), ConvVal.toString()); + Diag(Loc, DiagID, Val.toString(10), ConvVal.toString(10)); // Regardless of whether a diagnostic was emitted, really do the // truncation. @@ -253,7 +253,7 @@ void Sema::ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, Val.setIsSigned(NewSign); if (Val.isNegative()) // Sign bit changes meaning. - Diag(Loc, DiagID, OldVal.toString(), Val.toString()); + Diag(Loc, DiagID, OldVal.toString(10), Val.toString(10)); } } @@ -376,7 +376,7 @@ Sema::ActOnFinishSwitchStmt(SourceLocation SwitchLoc, StmtTy *Switch, if (CaseVals[i].first == CaseVals[i+1].first) { // If we have a duplicate, report it. Diag(CaseVals[i+1].second->getLHS()->getLocStart(), - diag::err_duplicate_case, CaseVals[i].first.toString()); + diag::err_duplicate_case, CaseVals[i].first.toString(10)); Diag(CaseVals[i].second->getLHS()->getLocStart(), diag::err_duplicate_case_prev); // FIXME: We really want to remove the bogus case stmt from the substmt, @@ -460,7 +460,7 @@ Sema::ActOnFinishSwitchStmt(SourceLocation SwitchLoc, StmtTy *Switch, if (OverlapStmt) { // If we have a duplicate, report it. Diag(CR->getLHS()->getLocStart(), - diag::err_duplicate_case, OverlapVal.toString()); + diag::err_duplicate_case, OverlapVal.toString(10)); Diag(OverlapStmt->getLHS()->getLocStart(), diag::err_duplicate_case_prev); // FIXME: We really want to remove the bogus case stmt from the substmt, |