[llvm] 547b712 - Suppress signedness-comparison warning

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 07:30:00 PDT 2021


Author: Jeremy Morse
Date: 2021-08-16T15:29:43+01:00
New Revision: 547b712500e9bbe2b4184ff3eedd5f5b6a29523b

URL: https://github.com/llvm/llvm-project/commit/547b712500e9bbe2b4184ff3eedd5f5b6a29523b
DIFF: https://github.com/llvm/llvm-project/commit/547b712500e9bbe2b4184ff3eedd5f5b6a29523b.diff

LOG: Suppress signedness-comparison warning

This is a follow-up to 54a61c94f93.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index a653c0a994e9..3018e98870f5 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -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


        


More information about the llvm-commits mailing list