[llvm] e6e5017 - [CodeGen] Use llvm::lower_bound (NFC) (#139655)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 22:58:53 PDT 2025


Author: Kazu Hirata
Date: 2025-05-12T22:58:50-07:00
New Revision: e6e50170b918445cfae3f9e726fb1d46380fa10e

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

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

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 5d6e7f1e67a4e..0ff0e7d16fc1f 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -486,8 +486,7 @@ class TransferTracker {
 
       // 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;
 


        


More information about the llvm-commits mailing list