Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit ee4b4ec

Browse files
committed
Fix signed/unsigned comparison warning on MSVC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295962 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8188e22 commit ee4b4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CodeGen/MachineScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ updateScheduledPressure(const SUnit *SU,
10481048
++CritIdx;
10491049
if (CritIdx != CritEnd && RegionCriticalPSets[CritIdx].getPSet() == ID) {
10501050
if ((int)NewMaxPressure[ID] > RegionCriticalPSets[CritIdx].getUnitInc()
1051-
&& NewMaxPressure[ID] <= std::numeric_limits<int16_t>::max())
1051+
&& NewMaxPressure[ID] <= (unsigned)std::numeric_limits<int16_t>::max())
10521052
RegionCriticalPSets[CritIdx].setUnitInc(NewMaxPressure[ID]);
10531053
}
10541054
unsigned Limit = RegClassInfo->getRegPressureSetLimit(ID);

0 commit comments

Comments
 (0)