[LCG] Add some pedantry to the use of ptrdiff_t to appease build bots.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 26 Apr 2014 22:59:28 +0000 (22:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 26 Apr 2014 22:59:28 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207337 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/iterator.h

index 0b33d7e0a1f7e0697d13a343628eb1eb97c8dfb0..af9b85c56c9ed0e78fe76285418d298393d64f99 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_ADT_ITERATOR_H
 
 #include <iterator>
+#include <cstddef>
 
 namespace llvm {
 
@@ -32,7 +33,7 @@ namespace llvm {
 /// terms of addition of one. These aren't equivalent for all iterator
 /// categories, and respecting that adds a lot of complexity for little gain.
 template <typename DerivedT, typename IteratorCategoryT, typename T,
-          typename DifferenceTypeT = ptrdiff_t, typename PointerT = T *,
+          typename DifferenceTypeT = std::ptrdiff_t, typename PointerT = T *,
           typename ReferenceT = T &>
 struct iterator_facade_base
     : std::iterator<IteratorCategoryT, T, DifferenceTypeT, PointerT,