aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-23 01:29:08 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-23 01:29:08 +0000
commit8c33368479221bbf80ef8f1fca85a74a8aebb2c2 (patch)
tree17abaa48b1b8a2a9c5c511c023623f9733ba0400 /lib
parentfb06d0ca959cff2351601aa4f935be74c6b41f3c (diff)
downloadexternal_llvm-8c33368479221bbf80ef8f1fca85a74a8aebb2c2.zip
external_llvm-8c33368479221bbf80ef8f1fca85a74a8aebb2c2.tar.gz
external_llvm-8c33368479221bbf80ef8f1fca85a74a8aebb2c2.tar.bz2
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')
-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 5755767..8bc8b82 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);
}