[PATCH] D145987: [ADT][NFCI] Do not use non-const lvalue-refs with enumerate in llvm/
Jakub Kuderski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 13:39:23 PDT 2023
kuhar created this revision.
kuhar added reviewers: kazu, zero9178, dblaikie, beanz.
Herald added subscribers: hanchung, hiraditya.
Herald added a project: All.
kuhar requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Replace references to `enumerate` results with either const lvalue
rerences or structured bindings. I did not use structured bindings
everywhere as it wasn't clear to me it would improve readability.
This is in preparation to the switch to `zip` semantics which won't
support non-const lvalue reference to elements:
https://reviews.llvm.org/D144503.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145987
Files:
llvm/lib/ObjectYAML/DWARFYAML.cpp
llvm/lib/ObjectYAML/MinidumpEmitter.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp
llvm/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145987.504835.patch
Type: text/x-patch
Size: 12698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230313/e18d0173/attachment.bin>
More information about the llvm-commits
mailing list