aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-12 22:58:50 -0700
committerGitHub <noreply@github.com>2025-05-12 22:58:50 -0700
commite6e50170b918445cfae3f9e726fb1d46380fa10e (patch)
tree0bc5e4f6bb1723dbecd33cd9fe8ce0a3e4c780b4 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent510c8a23e6edf1385682c6e06b228d4f46aa631a (diff)
downloadllvm-e6e50170b918445cfae3f9e726fb1d46380fa10e.zip
llvm-e6e50170b918445cfae3f9e726fb1d46380fa10e.tar.gz
llvm-e6e50170b918445cfae3f9e726fb1d46380fa10e.tar.bz2
[CodeGen] Use llvm::lower_bound (NFC) (#139655)
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 5d6e7f1..0ff0e7d 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -486,8 +486,7 @@ public:
// Is there a variable that wants a location for this value? If not, skip.
ValueLocPair Probe(VNum, LocationAndQuality());
- auto VIt = std::lower_bound(ValueToLoc.begin(), ValueToLoc.end(), Probe,
- ValueToLocSort);
+ auto VIt = llvm::lower_bound(ValueToLoc, Probe, ValueToLocSort);
if (VIt == ValueToLoc.end() || VIt->first != VNum)
continue;