Skip to content

Commit 13d80b4

Browse files
[AST] Use llvm::upper_bound (NFC) (#139664)
1 parent 75e0865 commit 13d80b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/ByteCode/BitcastBuffer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ void BitcastBuffer::markInitialized(Bits Offset, Bits Length) {
9191
InitializedBits.push_back(Element);
9292
} else {
9393
// Insert sorted.
94-
auto It = std::upper_bound(InitializedBits.begin(), InitializedBits.end(),
95-
Element);
94+
auto It = llvm::upper_bound(InitializedBits, Element);
9695
InitializedBits.insert(It, Element);
9796
}
9897

0 commit comments

Comments
 (0)