diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-24 16:21:29 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-24 16:21:29 -0700 |
commit | acf648b5e91b6ccbb6e29a6db344e8d8ae0fbdb7 (patch) | |
tree | 335e48d507b36696a9266ffc34fa5c2739b49dfc /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
parent | 5e29360743ca822f6934877cc972295c2da5a38b (diff) | |
download | llvm-acf648b5e91b6ccbb6e29a6db344e8d8ae0fbdb7.zip llvm-acf648b5e91b6ccbb6e29a6db344e8d8ae0fbdb7.tar.gz llvm-acf648b5e91b6ccbb6e29a6db344e8d8ae0fbdb7.tar.bz2 |
Use llvm::less_first and llvm::less_second (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 83336e6..191596d 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -3136,8 +3136,7 @@ bool InstrRefBasedLDV::emitTransfers( MI->getDebugLoc()->getInlinedAt()); Insts.emplace_back(AllVarsNumbering.find(Var)->second, MI); } - llvm::sort(Insts, - [](const auto &A, const auto &B) { return A.first < B.first; }); + llvm::sort(Insts, llvm::less_first()); // Insert either before or after the designated point... if (P.MBB) { |