projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be5e2fc
)
Fix missing header and namespace qualifier in ADT Sequence
author
Guillaume Chatelet
<gchatelet@google.com>
Tue, 8 Jun 2021 14:11:54 +0000
(14:11 +0000)
committer
Guillaume Chatelet
<gchatelet@google.com>
Tue, 8 Jun 2021 14:11:54 +0000
(14:11 +0000)
llvm/include/llvm/ADT/Sequence.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/Sequence.h
b/llvm/include/llvm/ADT/Sequence.h
index e75527fbaefd460a9b688f96ca87c791038ce35d..eb109b64c417e2cd6e93a8387110449dc94d4988 100644
(file)
--- a/
llvm/include/llvm/ADT/Sequence.h
+++ b/
llvm/include/llvm/ADT/Sequence.h
@@
-15,7
+15,8
@@
#ifndef LLVM_ADT_SEQUENCE_H
#define LLVM_ADT_SEQUENCE_H
-#include <iterator>
+#include <cstddef> // std::ptrdiff_t
+#include <iterator> // std::random_access_iterator_tag
namespace llvm {
@@
-24,7
+25,7
@@
namespace detail {
template <typename T, bool IsReversed> struct iota_range_iterator {
using iterator_category = std::random_access_iterator_tag;
using value_type = T;
- using difference_type = ptrdiff_t;
+ using difference_type =
std::
ptrdiff_t;
using pointer = T *;
using reference = T &;