[llvm] [ADT] Deprecate ArrayRef(std::nullopt) (PR #146011)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 23:01:17 PDT 2025


================
@@ -67,7 +67,7 @@ namespace llvm {
     /*implicit*/ ArrayRef() = default;
 
     /// Construct an empty ArrayRef from std::nullopt.
-    /*implicit*/ ArrayRef(std::nullopt_t) {}
+    /*implicit*/ [[deprecated]] ArrayRef(std::nullopt_t) {}
----------------
kazutakahirata wrote:

Addressed in the latest revision.  Thanks!

https://github.com/llvm/llvm-project/pull/146011


More information about the llvm-commits mailing list