Fix compiler warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2008-02-22 01:48:00 +00:00
parent 9e255b7df5
commit becda48f88

View File

@ -293,7 +293,7 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
if (HasOtherReachingDefs(IntA, IntB, AValNo, BValNo))
return false;
if (CommuteLimit >= 0 && numCommutes >= CommuteLimit)
if (CommuteLimit >= 0 && numCommutes >= (unsigned)CommuteLimit)
return false;
// At this point we have decided that it is legal to do this