aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-03 11:17:37 -0700
committerKazu Hirata <kazu@google.com>2022-09-03 11:17:37 -0700
commit89f1433225b05b993b9b3f0b8c3a282ec070ac23 (patch)
tree63ee6caf828890f8fcde2e995a3e1354d0f024d3 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent3850edd9e0c7a96b6001b13f54383e49fe0c7ecc (diff)
downloadllvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.zip
llvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.tar.gz
llvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.tar.bz2
Use llvm::lower_bound (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 87ccfc1..f6a55db 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -1430,8 +1430,7 @@ bool InstrRefBasedLDV::transferDebugInstrRef(MachineInstr &MI,
// Try to lookup the instruction number, and find the machine value number
// that it defines. It could be an instruction, or a PHI.
auto InstrIt = DebugInstrNumToInstr.find(InstNo);
- auto PHIIt = std::lower_bound(DebugPHINumToValue.begin(),
- DebugPHINumToValue.end(), InstNo);
+ auto PHIIt = llvm::lower_bound(DebugPHINumToValue, InstNo);
if (InstrIt != DebugInstrNumToInstr.end()) {
const MachineInstr &TargetInstr = *InstrIt->second.first;
uint64_t BlockNo = TargetInstr.getParent()->getNumber();