diff options
author | 2023-09-07 21:41:14 -0700 | |
---|---|---|
committer | 2023-09-08 23:54:07 +0000 | |
commit | 0b58115f797b2fcb533615063fe12a5dd2fe2271 (patch) | |
tree | 1157ddc5ebde18051af512648e943aca5101c846 /compiler/optimizing/nodes.h | |
parent | 743ce223c81f33f2955c64f39f85ca6c64099cb7 (diff) |
Switch iterator pointer/reference typedefs to void
Bug: none
Test: treehugger
Change-Id: I589cc36a95e505c3c356ad245dd03286680aa4f7
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index a44e349b4d..3f60ec5241 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2199,8 +2199,8 @@ class HEnvironmentIterator : public ValueObject { using iterator_category = std::forward_iterator_tag; using value_type = HEnvironment*; using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; + using pointer = void; + using reference = void; explicit HEnvironmentIterator(HEnvironment* cur) : cur_(cur) {} @@ -2925,8 +2925,8 @@ struct HSTLInstructionIterator : public ValueObject { using iterator_category = std::forward_iterator_tag; using value_type = HInstruction*; using difference_type = ptrdiff_t; - using pointer = value_type*; - using reference = value_type&; + using pointer = void; + using reference = void; static_assert(std::is_same_v<InnerIter, HBackwardInstructionIterator> || std::is_same_v<InnerIter, HInstructionIterator> || |