diff options
author | Mandeep Singh Grang <mgrang@codeaurora.org> | 2018-07-16 17:26:37 +0000 |
---|---|---|
committer | Mandeep Singh Grang <mgrang@codeaurora.org> | 2018-07-16 17:26:37 +0000 |
commit | 20239b18bbb81d3e5cbd6e3fd8a050bbcbec9757 (patch) | |
tree | 2c5be8169e1e95be972e834cf9d1038e90be4885 /llvm/lib/CodeGen | |
parent | 3dd1f9d61d4f6426a072b7812146115e99a23b53 (diff) | |
download | bcm5719-llvm-20239b18bbb81d3e5cbd6e3fd8a050bbcbec9757.tar.gz bcm5719-llvm-20239b18bbb81d3e5cbd6e3fd8a050bbcbec9757.zip |
[llvm] Change 2 instances of std::sort to llvm::sort
llvm-svn: 337192
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MIRCanonicalizerPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp index af6fc117c89..fa43d13b1b8 100644 --- a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp +++ b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp @@ -134,7 +134,7 @@ rescheduleLexographically(std::vector<MachineInstr *> instructions, StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II}); } - std::sort(StringInstrMap.begin(), StringInstrMap.end(), + llvm::sort(StringInstrMap.begin(), StringInstrMap.end(), [](const StringInstrPair &a, const StringInstrPair &b) -> bool { return (a.first < b.first); }); |