aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--lib/CodeGen/VirtRegMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 57557674b9..8bc8b82f1c 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -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);
}