From: Evan Cheng Date: Fri, 22 Feb 2008 01:48:00 +0000 (+0000) Subject: Fix compiler warning. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=becda48f88db41f879e5433d063982eeaa614438;p=oota-llvm.git Fix compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 86c9895ca92..ba026d7daf7 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -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