diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -20963,7 +20963,7 @@ SDValue RHS = SVN->getOperand(1); SmallVector Mask(SVN->getMask()); bool Merged = true; - for (auto const &I : enumerate(Ops)) { + for (auto I : enumerate(Ops)) { SDValue &Op = I.value(); if (Op) { SmallVector NewMask; @@ -22451,7 +22451,7 @@ // Recreate the BUILD_VECTOR, with elements now being Factor times smaller. SmallVector NewOps; NewOps.reserve(NewIntVT.getVectorNumElements()); - for (auto const &I : enumerate(N->ops())) { + for (auto I : enumerate(N->ops())) { SDValue Op = I.value(); assert(!Op.isUndef() && "FIXME: after allowing UNDEF's, handle them here."); unsigned SrcOpIdx = I.index(); diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp --- a/llvm/utils/TableGen/InstrInfoEmitter.cpp +++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp @@ -117,7 +117,7 @@ static void PrintDefList(const std::vector &Uses, unsigned Num, raw_ostream &OS) { OS << "static const MCPhysReg ImplicitList" << Num << "[] = { "; - for (auto const & [Idx, U] : enumerate(Uses)) + for (auto [Idx, U] : enumerate(Uses)) OS << (Idx ? ", " : "") << getQualifiedName(U); OS << " };\n"; }