Skip to content

Commit 4fc6b2c

Browse files
kazutakahirataDebadri Basak
authored andcommitted
[ADT] Remove ArrayRef(std::nullopt_t) (llvm#165831)
ArrayRef(std::nullopt_t) has been deprecated since: commit 2529de5 Author: Kazu Hirata <[email protected]> Date: Fri Jun 27 01:03:02 2025 -0700 Note that we've made at lease one release, llvmorg-21.1, with this deprecation.
1 parent 48c1d2f commit 4fc6b2c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/include/llvm/ADT/ArrayRef.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ namespace llvm {
6666
/// Construct an empty ArrayRef.
6767
/*implicit*/ ArrayRef() = default;
6868

69-
/// Construct an empty ArrayRef from std::nullopt.
70-
/*implicit*/ LLVM_DEPRECATED("Use {} or ArrayRef<T>() instead", "{}")
71-
ArrayRef(std::nullopt_t) {}
72-
7369
/// Construct an ArrayRef from a single element.
7470
/*implicit*/ ArrayRef(const T &OneElt LLVM_LIFETIME_BOUND)
7571
: Data(&OneElt), Length(1) {}

0 commit comments

Comments
 (0)