mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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
This commit is contained in:
@@ -366,7 +366,7 @@ unsigned RegScavenger::scavengeRegister(const TargetRegisterClass *RC,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find an available scavenging slot.
|
// Find an available scavenging slot.
|
||||||
int SI;
|
unsigned SI;
|
||||||
for (SI = 0; SI < Scavenged.size(); ++SI)
|
for (SI = 0; SI < Scavenged.size(); ++SI)
|
||||||
if (Scavenged[SI].Reg == 0)
|
if (Scavenged[SI].Reg == 0)
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user