[llvm] b044a82 - [ARM] Fixup for signed comparison warning. NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 08:30:34 PDT 2020
Author: David Green
Date: 2020-06-25T16:29:44+01:00
New Revision: b044a8227078823c83c213765f220e502b2346ed
URL: https://github.com/llvm/llvm-project/commit/b044a8227078823c83c213765f220e502b2346ed
DIFF: https://github.com/llvm/llvm-project/commit/b044a8227078823c83c213765f220e502b2346ed.diff
LOG: [ARM] Fixup for signed comparison warning. NFC
Added:
Modified:
llvm/lib/Target/ARM/ARMISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 4269a35e7b18..3e9ea130afc4 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 &&
More information about the llvm-commits
mailing list