diff options
author | Konstantin Varlamov <varconst@apple.com> | 2022-07-20 13:17:25 -0700 |
---|---|---|
committer | Konstantin Varlamov <varconst@apple.com> | 2022-07-20 13:19:00 -0700 |
commit | bc4d2e70518476f0a445761d43fee8b9e6670368 (patch) | |
tree | 3a487e0c0c780179d00170eee5414461c3149809 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 2ac7b142b12f66ce91c98177f8d7d942ed4cc94c (diff) | |
download | llvm-bc4d2e70518476f0a445761d43fee8b9e6670368.zip llvm-bc4d2e70518476f0a445761d43fee8b9e6670368.tar.gz llvm-bc4d2e70518476f0a445761d43fee8b9e6670368.tar.bz2 |
[libc++] Fix `_IterOps::__iter_move` to support proxy iterators.
The return type was specified incorrectly for proxy iterators that
define `reference` to be a class that implicitly converts to
`value_type`. `__iter_move` would end up returning an object of type
`reference` which would then implicitly convert to `value_type`; thus,
the function will return a `value_type&&` rvalue reference to the local
temporary.
Differential Revision: https://reviews.llvm.org/D130197
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions