Skip to content

Commit 1b12ad1

Browse files
authored
[IR] Correct Value::use_iterator::value_type. (#120609)
operator* for this iterator returns Use& so I think the value_type should be Use not Use*. Noticed while comparing with SDNode::use_iterator.
1 parent 399c3a7 commit 1b12ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/Value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Value {
131131

132132
public:
133133
using iterator_category = std::forward_iterator_tag;
134-
using value_type = UseT *;
134+
using value_type = UseT;
135135
using difference_type = std::ptrdiff_t;
136136
using pointer = value_type *;
137137
using reference = value_type &;

0 commit comments

Comments
 (0)