summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegisterScavenging.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-23 00:07:29 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-23 00:07:29 +0000
commit0e8fc6f87a5e0173c0c3ab1cfe4ca611bdee6aca (patch)
tree3f5cfb7f5b54253c179542026f78ecffa290495d /lib/CodeGen/RegisterScavenging.cpp
parent928ef439a5ab104d706b64f9da28eda32398bbf3 (diff)
downloadllvm-0e8fc6f87a5e0173c0c3ab1cfe4ca611bdee6aca.tar.gz
llvm-0e8fc6f87a5e0173c0c3ab1cfe4ca611bdee6aca.tar.bz2
llvm-0e8fc6f87a5e0173c0c3ab1cfe4ca611bdee6aca.tar.xz
Fix comparison of mixed signedness
177774 broke the lld-x86_64-darwin11 builder; error: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') for (SI = 0; SI < Scavenged.size(); ++SI) ~~ ^ ~~~~~~~~~~~~~~~~ Fix this by making SI also unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegisterScavenging.cpp')
-rw-r--r--lib/CodeGen/RegisterScavenging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp
index be33854060..b54bf7ddf7 100644
--- a/lib/CodeGen/RegisterScavenging.cpp
+++ b/lib/CodeGen/RegisterScavenging.cpp
@@ -366,7 +366,7 @@ unsigned RegScavenger::scavengeRegister(const TargetRegisterClass *RC,
}
// Find an available scavenging slot.
- int SI;
+ unsigned SI;
for (SI = 0; SI < Scavenged.size(); ++SI)
if (Scavenged[SI].Reg == 0)
break;