Skip to content

Commit 52040b4

Browse files
[ADT] Remove MutableArrayRef(std::array) (NFC) (#146114)
This constructor has been subsumed by another constructor of MutableArrayRef that takes a parameter whose type has data() and size() methods.
1 parent 9d6cbc3 commit 52040b4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/include/llvm/ADT/ArrayRef.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,6 @@ namespace llvm {
328328
void>>
329329
/*implicit*/ constexpr MutableArrayRef(const C &V) : ArrayRef<T>(V) {}
330330

331-
/// Construct a MutableArrayRef from a std::array
332-
template <size_t N>
333-
/*implicit*/ constexpr MutableArrayRef(std::array<T, N> &Arr)
334-
: ArrayRef<T>(Arr) {}
335-
336331
/// Construct a MutableArrayRef from a C array.
337332
template <size_t N>
338333
/*implicit*/ constexpr MutableArrayRef(T (&Arr)[N]) : ArrayRef<T>(Arr) {}

0 commit comments

Comments
 (0)