File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
utils/TableGen/GlobalISel Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ class MCAsmParser {
236
236
237
237
bool printPendingErrors () {
238
238
bool rv = !PendingErrors.empty ();
239
- for (auto Err : PendingErrors) {
239
+ for (auto & Err : PendingErrors) {
240
240
printError (Err.Loc , Twine (Err.Msg ), Err.Range );
241
241
}
242
242
PendingErrors.clear ();
Original file line number Diff line number Diff line change @@ -1312,7 +1312,7 @@ void VarLocBasedLDV::cleanupEntryValueTransfers(
1312
1312
return ;
1313
1313
1314
1314
auto TransRange = EntryValTransfers.equal_range (TRInst);
1315
- for (auto TDPair : llvm::make_range (TransRange.first , TransRange.second )) {
1315
+ for (auto & TDPair : llvm::make_range (TransRange.first , TransRange.second )) {
1316
1316
const VarLoc &EmittedEV = VarLocIDs[TDPair.second ];
1317
1317
if (std::tie (EntryVL.Var , EntryVL.Locs [0 ].Value .RegNo , EntryVL.Expr ) ==
1318
1318
std::tie (EmittedEV.Var , EmittedEV.Locs [0 ].Value .RegNo ,
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ bool MIRParserImpl::initializeCallSiteInfo(
402
402
MachineFunction &MF = PFS.MF ;
403
403
SMDiagnostic Error;
404
404
const LLVMTargetMachine &TM = MF.getTarget ();
405
- for (auto YamlCSInfo : YamlMF.CallSitesInfo ) {
405
+ for (auto & YamlCSInfo : YamlMF.CallSitesInfo ) {
406
406
yaml::CallSiteInfo::MachineInstrLoc MILoc = YamlCSInfo.CallLocation ;
407
407
if (MILoc.BlockNum >= MF.size ())
408
408
return error (Twine (MF.getName ()) +
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ void MachOWriter::writeRelocations(raw_ostream &OS) {
426
426
void MachOWriter::writeBindOpcodes (
427
427
raw_ostream &OS, std::vector<MachOYAML::BindOpcode> &BindOpcodes) {
428
428
429
- for (auto Opcode : BindOpcodes) {
429
+ for (auto & Opcode : BindOpcodes) {
430
430
uint8_t OpByte = Opcode.Opcode | Opcode.Imm ;
431
431
OS.write (reinterpret_cast <char *>(&OpByte), 1 );
432
432
for (auto Data : Opcode.ULEBExtraData ) {
Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ void GIMatchTreeVRegDefPartitioner::applyForPartition(
733
733
NewInstrID = SubBuilder.allocInstrID ();
734
734
735
735
GIMatchTreeBuilder::LeafVec &NewLeaves = SubBuilder.getPossibleLeaves ();
736
- for (const auto I : zip (NewLeaves, TraversedEdgesByNewLeaves)) {
736
+ for (const auto & I : zip (NewLeaves, TraversedEdgesByNewLeaves)) {
737
737
auto &Leaf = std::get<0 >(I);
738
738
auto &TraversedEdgesForLeaf = std::get<1 >(I);
739
739
GIMatchTreeInstrInfo *InstrInfo = Leaf.getInstrInfo (InstrID);
You can’t perform that action at this time.
0 commit comments