aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-22 01:48:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-22 01:48:00 +0000
commitbecda48f88db41f879e5433d063982eeaa614438 (patch)
treeb167b8875fb3fb2056b59b413f84043d1a357936 /lib/CodeGen/SimpleRegisterCoalescing.cpp
parent9e255b7df5a0a629920706e086e78ef89bf2f183 (diff)
downloadexternal_llvm-becda48f88db41f879e5433d063982eeaa614438.zip
external_llvm-becda48f88db41f879e5433d063982eeaa614438.tar.gz
external_llvm-becda48f88db41f879e5433d063982eeaa614438.tar.bz2
Fix compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 86c9895..ba026d7 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