Skip to content

Commit 81270ec

Browse files
author
Victor Hugo Vianna Silva
committed

File tree

1 file changed

+4
-3
lines changed
  • llvm/include/llvm/IR

1 file changed

+4
-3
lines changed

llvm/include/llvm/IR/CFG.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ template <class Ptr, class USE_iterator> // Predecessor Iterator
4242
class PredIterator {
4343
public:
4444
using iterator_category = std::forward_iterator_tag;
45-
using value_type = Ptr;
45+
using value_type = Ptr *;
4646
using difference_type = std::ptrdiff_t;
47-
using pointer = Ptr *;
47+
using pointer = Ptr **;
4848
using reference = Ptr *;
4949

5050
protected:
@@ -141,7 +141,8 @@ class SuccIterator
141141
std::random_access_iterator_tag, BlockT, int,
142142
BlockT *, BlockT *> {
143143
public:
144-
using difference_type = int;
144+
using value_type = BlockT *;
145+
using difference_type = std::ptrdiff_t;
145146
using pointer = BlockT *;
146147
using reference = BlockT *;
147148

0 commit comments

Comments
 (0)