diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-23 01:29:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-23 01:29:08 +0000 |
commit | f3061f8210b4be5fc7c92db81258a7e185f187fe (patch) | |
tree | 17abaa48b1b8a2a9c5c511c023623f9733ba0400 /lib/CodeGen/VirtRegMap.cpp | |
parent | 9bca583f9d674eb27f492d46074f5621dd166f5a (diff) |
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
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 4 |
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); } |