diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-22 01:48:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-22 01:48:00 +0000 |
commit | 271aef2b032ee16624e9f62c4378eb526f145c1a (patch) | |
tree | 7521bf3ad43cfb50654b7aaa5d521e159f1b1a0a /llvm | |
parent | f3057a939d63770aa1ae919146bdfc9d91635b59 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |