From b044a8227078823c83c213765f220e502b2346ed Mon Sep 17 00:00:00 2001 From: David Green Date: Thu, 25 Jun 2020 16:22:09 +0100 Subject: [PATCH] [ARM] Fixup for signed comparison warning. NFC --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 4269a35e7b1..3e9ea130afc 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -7279,8 +7279,8 @@ static SDValue LowerBuildVectorOfFPTrunc(SDValue BV, SelectionDAG &DAG, return SDValue(); // Check all the values in the BuildVector line up with our expectations. - for (int i = 1; i < 4; i++) { - auto Check = [](SDValue Trunc, SDValue Op, int Idx) { + for (unsigned i = 1; i < 4; i++) { + auto Check = [](SDValue Trunc, SDValue Op, unsigned Idx) { return Trunc.getOpcode() == ISD::FP_ROUND && Trunc.getOperand(0).getOpcode() == ISD::EXTRACT_VECTOR_ELT && Trunc.getOperand(0).getOperand(0) == Op && -- 2.11.0