summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
commit86cb31862f1ce14c3e6774ec9d84e51e47a43587 (patch)
tree0f53e56ae15c3d8f8e169b55013f5c821e32a18d /llvm/lib/Support/Statistic.cpp
parent9c0c60d0801847eead729ccab3791fb530faa224 (diff)
downloadbcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.tar.gz
bcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.zip
Fix more -Wshorten-64-to-32 warnings.
llvm-svn: 50659
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index e500b55f5f5..4516ebc6b34 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -90,7 +90,7 @@ StatisticInfo::~StatisticInfo() {
// Figure out how long the biggest Value and Name fields are.
unsigned MaxNameLen = 0, MaxValLen = 0;
- for (unsigned i = 0, e = Stats.size(); i != e; ++i) {
+ for (size_t i = 0, e = Stats.size(); i != e; ++i) {
MaxValLen = std::max(MaxValLen,
(unsigned)utostr(Stats[i]->getValue()).size());
MaxNameLen = std::max(MaxNameLen,
@@ -106,7 +106,7 @@ StatisticInfo::~StatisticInfo() {
<< "===" << std::string(73, '-') << "===\n\n";
// Print all of the statistics.
- for (unsigned i = 0, e = Stats.size(); i != e; ++i) {
+ for (size_t i = 0, e = Stats.size(); i != e; ++i) {
std::string CountStr = utostr(Stats[i]->getValue());
OutStream << std::string(MaxValLen-CountStr.size(), ' ')
<< CountStr << " " << Stats[i]->getName()
OpenPOWER on IntegriCloud