diff --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp --- a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp +++ b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp @@ -854,15 +854,15 @@ } // Insert new location defs. - for (auto& Pair : BBInsertBeforeMap) { + for (auto &Pair : BBInsertBeforeMap) { InsertMap &Map = Pair.second; - for (auto& Pair : Map) { + for (auto &Pair : Map) { Instruction *InsertBefore = Pair.first; assert(InsertBefore && "should never be null"); auto FragMemLocs = Pair.second; auto &Ctx = Fn.getContext(); - for (auto& FragMemLoc : FragMemLocs) { + for (auto &FragMemLoc : FragMemLocs) { DIExpression *Expr = DIExpression::get(Ctx, std::nullopt); Expr = *DIExpression::createFragmentExpression( Expr, FragMemLoc.OffsetInBits, FragMemLoc.SizeInBits); 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 const &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 const &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 const & [Idx, U] : enumerate(Uses)) OS << (Idx ? ", " : "") << getQualifiedName(U); OS << " };\n"; }