Skip to content

Commit b120127

Browse files
committed
Revert r351954 "Add a value_type to ArrayRef."
This breaks arm self-hosted buildbots. llvm-svn: 352206
1 parent aa3ed5a commit b120127

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

llvm/include/llvm/ADT/ArrayRef.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ namespace llvm {
4444
using const_iterator = const T *;
4545
using size_type = size_t;
4646
using reverse_iterator = std::reverse_iterator<iterator>;
47-
using value_type = typename std::remove_cv<T>::type;
4847

4948
private:
5049
/// The start of the array, in an external buffer.

llvm/unittests/ADT/ArrayRefTest.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ static_assert(
5151
"Assigning from an initializer list");
5252
#endif
5353

54-
// Check Typedefs.
55-
static_assert(
56-
std::is_same<ArrayRef<int>::value_type, int>::value,
57-
"erroneous value_type");
58-
static_assert(
59-
std::is_same<ArrayRef<const int>::value_type, int>::value,
60-
"erroneous value_type");
61-
6254
namespace {
6355

6456
TEST(ArrayRefTest, AllocatorCopy) {

0 commit comments

Comments
 (0)