summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-16 17:55:08 +0000
committerDan Gohman <gohman@apple.com>2009-01-16 17:55:08 +0000
commitb903071735e8f8f314dc4356aa82e062e9d3a987 (patch)
treeaaea16eccd582fd9154ea2540169cd41b956b4df /llvm/lib/CodeGen
parent195d36cb57a3045f2f3909598d09098692f9a0c2 (diff)
downloadbcm5719-llvm-b903071735e8f8f314dc4356aa82e062e9d3a987.tar.gz
bcm5719-llvm-b903071735e8f8f314dc4356aa82e062e9d3a987.zip
Fix a "comparison between signed and unsigned integer expressions"
warning. llvm-svn: 62327
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 1d42bf13fc7..b7bfe3fefd9 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -155,7 +155,7 @@ namespace {
if (C == Other)
return NoHazard;
unsigned Score = 0;
- for (int i = 0; i != array_lengthof(Window); ++i)
+ for (unsigned i = 0; i != array_lengthof(Window); ++i)
if (Window[i] == C)
Score += i + 1;
if (Score > array_lengthof(Window) * 2)
OpenPOWER on IntegriCloud