[llvm] e1cee35 - [CodeGen] Use llvm::lower_bound (NFC) (#140341)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 23:53:23 PDT 2025


Author: Kazu Hirata
Date: 2025-05-16T23:53:20-07:00
New Revision: e1cee35546c91a4ec1df87827f4ef996fa21a35f

URL: https://github.com/llvm/llvm-project/commit/e1cee35546c91a4ec1df87827f4ef996fa21a35f
DIFF: https://github.com/llvm/llvm-project/commit/e1cee35546c91a4ec1df87827f4ef996fa21a35f.diff

LOG: [CodeGen] Use llvm::lower_bound (NFC) (#140341)

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Removed: 
    


################################################################################
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