[all-commits] [llvm/llvm-project] 98fe9e: [lld-macho][NFC] add const to pointer/reference in...

Greg McGary via All-commits all-commits at lists.llvm.org
Wed Mar 10 12:07:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98fe9e41f7a612193ee74689961050bd4dc7c61e
      https://github.com/llvm/llvm-project/commit/98fe9e41f7a612193ee74689961050bd4dc7c61e
  Author: Greg McGary <gkm at fb.com>
  Date:   2021-03-10 (Wed, 10 Mar 2021)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/Dwarf.cpp
    M lld/MachO/ExportTrie.cpp
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/UnwindInfoSection.cpp
    M lld/MachO/Writer.cpp

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

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

Differential Revision: https://reviews.llvm.org/D98317




More information about the All-commits mailing list