[llvm] r305158 - [SmallVector] Reinstate the typedefs.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 10 16:18:32 PDT 2017


Author: davide
Date: Sat Jun 10 18:18:32 2017
New Revision: 305158

URL: http://llvm.org/viewvc/llvm-project?rev=305158&view=rev
Log:
[SmallVector] Reinstate the typedefs.

They're unused with recent versions of libstdc++ but older ones
(e.g. libstdc++ 4.9 still requires them). Maybe we should bump
the requirements on the minimum version to make GCC 7 happy, but
in the meanwhile we need to live with the warning.

Modified:
    llvm/trunk/unittests/ADT/SmallVectorTest.cpp

Modified: llvm/trunk/unittests/ADT/SmallVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/SmallVectorTest.cpp?rev=305158&r1=305157&r2=305158&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/SmallVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/SmallVectorTest.cpp Sat Jun 10 18:18:32 2017
@@ -446,6 +446,9 @@ TYPED_TEST(SmallVectorTest, AppendRepeat
   struct output_iterator {
     typedef std::output_iterator_tag iterator_category;
     typedef int value_type;
+    typedef int difference_type;
+    typedef value_type *pointer;
+    typedef value_type &reference;
     operator int() { return 2; }
     operator Constructable() { return 7; }
   };




More information about the llvm-commits mailing list