From becda48f88db41f879e5433d063982eeaa614438 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 22 Feb 2008 01:48:00 +0000 Subject: [PATCH] Fix compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47468 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1