summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit271aef2b032ee16624e9f62c4378eb526f145c1a (patch)
tree7521bf3ad43cfb50654b7aaa5d521e159f1b1a0a /llvm
parentf3057a939d63770aa1ae919146bdfc9d91635b59 (diff)
downloadbcm5719-llvm-271aef2b032ee16624e9f62c4378eb526f145c1a.tar.gz
bcm5719-llvm-271aef2b032ee16624e9f62c4378eb526f145c1a.zip
Fix compiler warning.
llvm-svn: 47468
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 86c9895ca92..ba026d7daf7 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud