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 | 1d19abe0af2e96d4cb7853fd5964128ac905b0a2 (patch) | |
tree | b167b8875fb3fb2056b59b413f84043d1a357936 /lib | |
parent | eb3f11721f17186a725c5a541ef9a069d104610e (diff) | |
download | external_llvm-1d19abe0af2e96d4cb7853fd5964128ac905b0a2.zip external_llvm-1d19abe0af2e96d4cb7853fd5964128ac905b0a2.tar.gz external_llvm-1d19abe0af2e96d4cb7853fd5964128ac905b0a2.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')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
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 |