summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-26 22:59:28 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-26 22:59:28 +0000
commiteadbda3320e41944c2d7106c51b23608a183a3c9 (patch)
tree2770465130f434149988cf7a1dff2b2acab492d4 /include
parentbbec604000804c99a9a612e1b8e17ec407017bdb (diff)
downloadllvm-eadbda3320e41944c2d7106c51b23608a183a3c9.tar.gz
llvm-eadbda3320e41944c2d7106c51b23608a183a3c9.tar.bz2
llvm-eadbda3320e41944c2d7106c51b23608a183a3c9.tar.xz
[LCG] Add some pedantry to the use of ptrdiff_t to appease build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/iterator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/iterator.h b/include/llvm/ADT/iterator.h
index 0b33d7e0a1..af9b85c56c 100644
--- a/include/llvm/ADT/iterator.h
+++ b/include/llvm/ADT/iterator.h
@@ -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,