Skip to content

Commit 2a570c6

Browse files
[ADT] Remove MutableArrayRef(std::array) (NFC)
This constructor has been subsumed by another constructor of MutableArrayRef that takes a parameter whose type has data() and size() methods.
1 parent ac7e391 commit 2a570c6

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
@@ -327,11 +327,6 @@ namespace llvm {
327327
void>>
328328
/*implicit*/ constexpr MutableArrayRef(const C &V) : ArrayRef<T>(V) {}
329329

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

0 commit comments

Comments
 (0)