[llvm] [CodeGen] Use llvm::lower_bound (NFC) (PR #140341)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 16 20:30:35 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/140341.diff
1 Files Affected:
- (modified) llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp (+2-2)
``````````diff
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() &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/140341
More information about the llvm-commits
mailing list