mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Remove warnings about comparison between signed and unsigned expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bca583f9d
commit
f3061f8210
@ -151,7 +151,7 @@ void VirtRegMap::addSpillSlotUse(int FI, MachineInstr *MI) {
|
||||
// instruction selection and is not a spill
|
||||
if (FI >= LowSpillSlot) {
|
||||
assert(FI >= 0 && "Spill slot index should not be negative!");
|
||||
assert(FI-LowSpillSlot < SpillSlotToUsesMap.size()
|
||||
assert((unsigned)FI-LowSpillSlot < SpillSlotToUsesMap.size()
|
||||
&& "Invalid spill slot");
|
||||
SpillSlotToUsesMap[FI-LowSpillSlot].insert(MI);
|
||||
}
|
||||
@ -189,7 +189,7 @@ void VirtRegMap::RemoveMachineInstrFromMaps(MachineInstr *MI) {
|
||||
// is not a spill
|
||||
if (FI < LowSpillSlot)
|
||||
continue;
|
||||
assert(FI-LowSpillSlot < SpillSlotToUsesMap.size()
|
||||
assert((unsigned)FI-LowSpillSlot < SpillSlotToUsesMap.size()
|
||||
&& "Invalid spill slot");
|
||||
SpillSlotToUsesMap[FI-LowSpillSlot].erase(MI);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user