[all-commits] [llvm/llvm-project] bff368: Fix SafeIntIterator reference type
Guillaume Chatelet via All-commits
all-commits at lists.llvm.org
Mon Mar 6 07:28:54 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bff3682e9ede6c317bbfb666e64a7d4927ba9055
https://github.com/llvm/llvm-project/commit/bff3682e9ede6c317bbfb666e64a7d4927ba9055
Author: Guillaume Chatelet <gchatelet at google.com>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M llvm/include/llvm/ADT/Sequence.h
M llvm/unittests/ADT/SequenceTest.cpp
Log Message:
-----------
Fix SafeIntIterator reference type
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
Differential Revision: https://reviews.llvm.org/D145373
More information about the All-commits
mailing list