From f3061f8210b4be5fc7c92db81258a7e185f187fe Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 23 May 2008 01:29:08 +0000 Subject: [PATCH] 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 --- lib/CodeGen/VirtRegMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 57557674b98..8bc8b82f1c8 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); } -- 2.34.1