diff --git a/llvm/include/llvm/CodeGen/LiveInterval.h b/llvm/include/llvm/CodeGen/LiveInterval.h index 590a48b17cce9..ad8dec68c073c 100644 --- a/llvm/include/llvm/CodeGen/LiveInterval.h +++ b/llvm/include/llvm/CodeGen/LiveInterval.h @@ -731,6 +731,12 @@ namespace llvm { T *P; public: + using difference_type = ptrdiff_t; + using value_type = T; + using pointer = T *; + using reference = T &; + using iterator_category = std::forward_iterator_tag; + SingleLinkedListIterator(T *P) : P(P) {} SingleLinkedListIterator &operator++() {