[all-commits] [llvm/llvm-project] ad0307: [lld/mac] Make two local variables const

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Oct 13 09:03:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad030740b2db6135880376a38259195c65ce2110
      https://github.com/llvm/llvm-project/commit/ad030740b2db6135880376a38259195c65ce2110
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

  Changed paths:
    M lld/MachO/InputFiles.cpp

  Log Message:
  -----------
  [lld/mac] Make two local variables const

While reading this code, I was wondering if we change these variables in the
loop. We don't, so make them const to make this easier to see next time.

No behavior change.

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




More information about the All-commits mailing list