Author: Kazu Hirata
Date: 2025-05-12T23:24:46-07:00
New Revision: 13d80b4b12af3e6176972dad8218bd08ef51c45c

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

LOG: [AST] Use llvm::upper_bound (NFC) (#139664)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/BitcastBuffer.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/BitcastBuffer.cpp 
b/clang/lib/AST/ByteCode/BitcastBuffer.cpp
index fbd500fd8f5f4..5935de3651a8b 100644
--- a/clang/lib/AST/ByteCode/BitcastBuffer.cpp
+++ b/clang/lib/AST/ByteCode/BitcastBuffer.cpp
@@ -91,8 +91,7 @@ void BitcastBuffer::markInitialized(Bits Offset, Bits Length) 
{
     InitializedBits.push_back(Element);
   } else {
     // Insert sorted.
-    auto It = std::upper_bound(InitializedBits.begin(), InitializedBits.end(),
-                               Element);
+    auto It = llvm::upper_bound(InitializedBits, Element);
     InitializedBits.insert(It, Element);
   }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to