1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Fix warning: comparison of integer expressions of different signedness. NFC

This patch resolves the Wsign-compare warning that I observed on armv7l and x86 with both gcc and clang.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D102792
This commit is contained in:
Luke Benes 2021-05-21 18:19:20 +08:00 committed by Wang, Pengfei
parent 8dfab88553
commit 38eda91550

View File

@ -176,7 +176,7 @@ bool X86TileConfig::runOnMachineFunction(MachineFunction &MF) {
SubIdx = 0;
auto Iter = DefMI.getIterator();
if (&MBB == &MF.front() &&
std::distance(MBB.instr_begin(), Iter) < ConstPos)
(unsigned)std::distance(MBB.instr_begin(), Iter) < ConstPos)
Iter = ConstMI->getIterator();
NewMI = addFrameReference(
BuildMI(MBB, ++Iter, DL,