Skip to content

Commit 254ef5f

Browse files
[ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) (#150471)
MutableArrayRef(std::nullopt_t) has been deprecated since: commit 9d6cbc3 Author: Kazu Hirata <[email protected]> Date: Fri Jun 27 11:31:11 2025 -0700 I've never seen a use outside the LLVM project AFAICT, so this patch just removes it ahead of ArrayRef(std::nullopt_t) to prevent backsliding.
1 parent 936ee35 commit 254ef5f

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
@@ -317,10 +317,6 @@ namespace llvm {
317317
/// Construct an empty MutableArrayRef.
318318
/*implicit*/ MutableArrayRef() = default;
319319

320-
/// Construct an empty MutableArrayRef from std::nullopt.
321-
/*implicit*/ LLVM_DEPRECATED("Use {} or MutableArrayRef<T>() instead", "{}")
322-
MutableArrayRef(std::nullopt_t) : ArrayRef<T>() {}
323-
324320
/// Construct a MutableArrayRef from a single element.
325321
/*implicit*/ MutableArrayRef(T &OneElt) : ArrayRef<T>(OneElt) {}
326322

0 commit comments

Comments
 (0)