Suppress signedness-comparison warning
authorJeremy Morse <jeremy.morse@sony.com>
Mon, 16 Aug 2021 14:28:56 +0000 (15:28 +0100)
committerJeremy Morse <jeremy.morse@sony.com>
Mon, 16 Aug 2021 14:29:43 +0000 (15:29 +0100)
This is a follow-up to 54a61c94f93.

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

index a653c0a..3018e98 100644 (file)
@@ -3653,7 +3653,7 @@ bool InstrRefBasedLDV::ExtendRanges(MachineFunction &MF, TargetPassConfig *TPC,
   // If we have an extremely large number of variable assignments and blocks,
   // bail out at this point. We've burnt some time doing analysis already,
   // however we should cut our losses.
-  if (MaxNumBlocks > InputBBLimit && VarAssignCount > InputDbgValLimit) {
+  if (MaxNumBlocks > (int)InputBBLimit && VarAssignCount > InputDbgValLimit) {
     LLVM_DEBUG(dbgs() << "Disabling InstrRefBasedLDV: " << MF.getName()
                       << " has " << MaxNumBlocks << " basic blocks and "
                       << VarAssignCount