[llvm-commits] [llvm] r62327 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
Dan Gohman
gohman at apple.com
Fri Jan 16 09:55:08 PST 2009
Author: djg
Date: Fri Jan 16 11:55:08 2009
New Revision: 62327
URL: http://llvm.org/viewvc/llvm-project?rev=62327&view=rev
Log:
Fix a "comparison between signed and unsigned integer expressions"
warning.
Modified:
llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=62327&r1=62326&r2=62327&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Fri Jan 16 11:55:08 2009
@@ -155,7 +155,7 @@
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)
More information about the llvm-commits
mailing list