[PATCH] D98317: [lld-macho][NFC] add const to pointer/reference induction variables of range-based for loops

Greg McGary via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 21:44:13 PST 2021


gkm created this revision.
gkm added a reviewer: lld-macho.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
gkm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Pointer and reference induction variables of range-based for loops are often const, and code authors often lax about qualifying them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98317

Files:
  lld/MachO/Driver.cpp
  lld/MachO/Dwarf.cpp
  lld/MachO/ExportTrie.cpp
  lld/MachO/SyntheticSections.cpp
  lld/MachO/UnwindInfoSection.cpp
  lld/MachO/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98317.329530.patch
Type: text/x-patch
Size: 4970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210310/3d4786e9/attachment.bin>


More information about the llvm-commits mailing list