Have ValueUseIterator template use OperandType instead of IROperand.
This was causing some issues using helper methods like llvm::make_early_inc_range on Value::getUses(), resulting in IROperand instead of OpOperand. PiperOrigin-RevId: 262056425
This commit is contained in:
parent
76b041868f
commit
2fb51e98b9
@ -197,7 +197,7 @@ public:
|
||||
/// An iterator over all uses of a ValueBase.
|
||||
template <typename OperandType>
|
||||
class ValueUseIterator
|
||||
: public std::iterator<std::forward_iterator_tag, IROperand> {
|
||||
: public std::iterator<std::forward_iterator_tag, OperandType> {
|
||||
public:
|
||||
ValueUseIterator() = default;
|
||||
explicit ValueUseIterator(OperandType *current) : current(current) {}
|
||||
|
Loading…
Reference in New Issue
Block a user