Fix compiler warning.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 22 Feb 2008 01:48:00 +0000 (01:48 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 22 Feb 2008 01:48:00 +0000 (01:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47468 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SimpleRegisterCoalescing.cpp

index 86c9895ca92a276d384e9eb519fd34cd2235f986..ba026d7daf7f2df6f225fe2080ee852dc2d16965 100644 (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