[llvm] [ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) (PR #150471)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 10:14:57 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-adt
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
MutableArrayRef(std::nullopt_t) has been deprecated since:
commit 9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584
Author: Kazu Hirata <kazu@<!-- -->google.com>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/150471.diff
1 Files Affected:
- (modified) llvm/include/llvm/ADT/ArrayRef.h (-4)
``````````diff
diff --git a/llvm/include/llvm/ADT/ArrayRef.h b/llvm/include/llvm/ADT/ArrayRef.h
index ff8bdb8b4fec4..fb91690bb0eb3 100644
--- a/llvm/include/llvm/ADT/ArrayRef.h
+++ b/llvm/include/llvm/ADT/ArrayRef.h
@@ -317,10 +317,6 @@ namespace llvm {
/// Construct an empty MutableArrayRef.
/*implicit*/ MutableArrayRef() = default;
- /// Construct an empty MutableArrayRef from std::nullopt.
- /*implicit*/ LLVM_DEPRECATED("Use {} or MutableArrayRef<T>() instead", "{}")
- MutableArrayRef(std::nullopt_t) : ArrayRef<T>() {}
-
/// Construct a MutableArrayRef from a single element.
/*implicit*/ MutableArrayRef(T &OneElt) : ArrayRef<T>(OneElt) {}
``````````
</details>
https://github.com/llvm/llvm-project/pull/150471
More information about the llvm-commits
mailing list