diff options
Diffstat (limited to 'contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp')
| -rw-r--r-- | contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp index fa43d13b1b85..f17c23619ed5 100644 --- a/contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp +++ b/contrib/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp @@ -134,10 +134,10 @@ rescheduleLexographically(std::vector<MachineInstr *> instructions,      StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II});    } -  llvm::sort(StringInstrMap.begin(), StringInstrMap.end(), -            [](const StringInstrPair &a, const StringInstrPair &b) -> bool { -              return (a.first < b.first); -            }); +  llvm::sort(StringInstrMap, +             [](const StringInstrPair &a, const StringInstrPair &b) -> bool { +               return (a.first < b.first); +             });    for (auto &II : StringInstrMap) { @@ -677,8 +677,7 @@ static bool runOnBasicBlock(MachineBasicBlock *MBB,    std::vector<MachineInstr *> Candidates = populateCandidates(MBB);    std::vector<MachineInstr *> VisitedMIs; -  std::copy(Candidates.begin(), Candidates.end(), -            std::back_inserter(VisitedMIs)); +  llvm::copy(Candidates, std::back_inserter(VisitedMIs));    std::vector<TypedVReg> VRegs;    for (auto candidate : Candidates) {  | 
