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:
parent
8dfab88553
commit
38eda91550
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user