diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-26 22:59:28 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-26 22:59:28 +0000 |
| commit | 1129e9cec109acaf4d4659cad9133b0cb044d8bd (patch) | |
| tree | d5e2ea245fe333f24d06c14c8e85c244054629dc /llvm/include | |
| parent | 27a5c6713b7a824f2bf34b8a92381ff0afa6b56e (diff) | |
| download | bcm5719-llvm-1129e9cec109acaf4d4659cad9133b0cb044d8bd.tar.gz bcm5719-llvm-1129e9cec109acaf4d4659cad9133b0cb044d8bd.zip | |
[LCG] Add some pedantry to the use of ptrdiff_t to appease build bots.
llvm-svn: 207337
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/ADT/iterator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/iterator.h b/llvm/include/llvm/ADT/iterator.h index 0b33d7e0a1f..af9b85c56c9 100644 --- a/llvm/include/llvm/ADT/iterator.h +++ b/llvm/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, |

