[llvm-commits] [llvm] r51465 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Bill Wendling
isanbard at gmail.com
Thu May 22 18:29:08 PDT 2008
Author: void
Date: Thu May 22 20:29:08 2008
New Revision: 51465
URL: http://llvm.org/viewvc/llvm-project?rev=51465&view=rev
Log:
Remove warnings about comparison between signed and unsigned expressions.
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=51465&r1=51464&r2=51465&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Thu May 22 20:29:08 2008
@@ -151,7 +151,7 @@
// 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 @@
// 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);
}
More information about the llvm-commits
mailing list