[llvm] 254ef5f - [ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) (#150471)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 15:49:49 PDT 2025
Author: Kazu Hirata
Date: 2025-07-24T15:49:45-07:00
New Revision: 254ef5f51d1ef46d4bc9e1304ccf58686fa97f12
URL: https://github.com/llvm/llvm-project/commit/254ef5f51d1ef46d4bc9e1304ccf58686fa97f12
DIFF: https://github.com/llvm/llvm-project/commit/254ef5f51d1ef46d4bc9e1304ccf58686fa97f12.diff
LOG: [ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) (#150471)
MutableArrayRef(std::nullopt_t) has been deprecated since:
commit 9d6cbc3c20923759d9ffdf19b4f0d498f8cf5584
Author: Kazu Hirata <kazu at 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.
Added:
Modified:
llvm/include/llvm/ADT/ArrayRef.h
Removed:
################################################################################
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) {}
More information about the llvm-commits
mailing list