-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) #150471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADT] Remove MutableArrayRef(std::nullopt_t) (NFC) #150471
Conversation
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.
|
@llvm/pr-subscribers-llvm-adt Author: Kazu Hirata (kazutakahirata) ChangesMutableArrayRef(std::nullopt_t) has been deprecated since: commit 9d6cbc3 I've never seen a use outside the LLVM project AFAICT, so this patch Full diff: https://github.com/llvm/llvm-project/pull/150471.diff 1 Files Affected:
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) {}
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/23212 Here is the relevant piece of the build log for the reference |
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.
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.