We explicitly state that the reference type for Sequence iterator is a value_type.
Since the iterator is a lazy generator, it cannot point to any memory and so it cannot have a reference type.
Fixes https://github.com/llvm/llvm-project/issues/61122
Details
Details
- Reviewers
kuhar foad - Commits
- rGbff3682e9ede: Fix SafeIntIterator reference type
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks for the fix. Just a couple of nits.
Fix #61122
Could you make the commit line more specific? Maybe something like 'Fix SafeIntIterator reference type'.
llvm/unittests/ADT/SequenceTest.cpp | ||
---|---|---|
299 | nit: Could you rename this or add a comment explaining what the intention is behind this test? |
nit: Could you rename this or add a comment explaining what the intention is behind this test?