[llvm] [CodeGen] Use llvm::lower_bound (NFC) (PR #140341)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri May 16 20:30:01 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140341
None
>From 2157659e228a1f72f795bfa121a904e9aef46017 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 15 May 2025 21:28:40 -0700
Subject: [PATCH] [CodeGen] Use llvm::lower_bound (NFC)
---
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 0ff0e7d16fc1f..a1fd5a71df93d 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -386,8 +386,8 @@ class TransferTracker {
// for it. Use an empty ValueLocPair to search for an entry in ValueToLoc.
const ValueIDNum &Num = Op.ID;
ValueLocPair Probe(Num, LocationAndQuality());
- auto ValuesPreferredLoc = std::lower_bound(
- ValueToLoc.begin(), ValueToLoc.end(), Probe, ValueToLocSort);
+ auto ValuesPreferredLoc =
+ llvm::lower_bound(ValueToLoc, Probe, ValueToLocSort);
// There must be a legitimate entry found for Num.
assert(ValuesPreferredLoc != ValueToLoc.end() &&
More information about the llvm-commits
mailing list