Revert r351954 "Add a value_type to ArrayRef."
authorClement Courbet <courbet@google.com>
Fri, 25 Jan 2019 15:25:52 +0000 (15:25 +0000)
committerClement Courbet <courbet@google.com>
Fri, 25 Jan 2019 15:25:52 +0000 (15:25 +0000)
This breaks arm self-hosted buildbots.

llvm-svn: 352206

llvm/include/llvm/ADT/ArrayRef.h
llvm/unittests/ADT/ArrayRefTest.cpp

index 070aec2..75bb7d6 100644 (file)
@@ -44,7 +44,6 @@ namespace llvm {
     using const_iterator = const T *;
     using size_type = size_t;
     using reverse_iterator = std::reverse_iterator<iterator>;
-    using value_type = typename std::remove_cv<T>::type;
 
   private:
     /// The start of the array, in an external buffer.
index 0407fb4..a5609f8 100644 (file)
@@ -51,14 +51,6 @@ static_assert(
     "Assigning from an initializer list");
 #endif
 
-// Check Typedefs.
-static_assert(
-    std::is_same<ArrayRef<int>::value_type, int>::value,
-    "erroneous value_type");
-static_assert(
-    std::is_same<ArrayRef<const int>::value_type, int>::value,
-    "erroneous value_type");
-
 namespace {
 
 TEST(ArrayRefTest, AllocatorCopy) {