Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

This constructor has been subsumed by another constructor of
MutableArrayRef that takes a parameter whose type has data() and
size() methods.

This constructor has been subsumed by another constructor of
MutableArrayRef that takes a parameter whose type has data() and
size() methods.
@llvmbot
Copy link
Member

llvmbot commented Jun 27, 2025

@llvm/pr-subscribers-llvm-adt

Author: Kazu Hirata (kazutakahirata)

Changes

This constructor has been subsumed by another constructor of
MutableArrayRef that takes a parameter whose type has data() and
size() methods.


Full diff: https://github.com/llvm/llvm-project/pull/146114.diff

1 Files Affected:

  • (modified) llvm/include/llvm/ADT/ArrayRef.h (-5)
diff --git a/llvm/include/llvm/ADT/ArrayRef.h b/llvm/include/llvm/ADT/ArrayRef.h
index 3b05cfb326c82..19acd145450a3 100644
--- a/llvm/include/llvm/ADT/ArrayRef.h
+++ b/llvm/include/llvm/ADT/ArrayRef.h
@@ -327,11 +327,6 @@ namespace llvm {
                   void>>
     /*implicit*/ constexpr MutableArrayRef(const C &V) : ArrayRef<T>(V) {}
 
-    /// Construct a MutableArrayRef from a std::array
-    template <size_t N>
-    /*implicit*/ constexpr MutableArrayRef(std::array<T, N> &Arr)
-        : ArrayRef<T>(Arr) {}
-
     /// Construct a MutableArrayRef from a C array.
     template <size_t N>
     /*implicit*/ constexpr MutableArrayRef(T (&Arr)[N]) : ArrayRef<T>(Arr) {}

@kazutakahirata kazutakahirata merged commit 52040b4 into llvm:main Jun 27, 2025
9 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250627_MutableArrayRef_std_array branch June 27, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants