[all-commits] [llvm/llvm-project] a55727: [AVR] Avoid reusing the same variable name (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Feb 3 01:21:39 PST 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: a55727f334b39600bfc71144b11b42aae6b94e0b
      https://github.com/llvm/llvm-project/commit/a55727f334b39600bfc71144b11b42aae6b94e0b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AVR/AVRFrameLowering.cpp

  Log Message:
  -----------
  [AVR] Avoid reusing the same variable name (NFC)

Apparently GCC 5.4 (a supported compiler) has a bug where it will
use the "MachineInstr &MI" defined by the range-based for loop
to evaluate the for loop expression. Pick a different variable
name to avoid this.

(cherry picked from commit f8f55f7e0343634e8cf0892883ce7132b7a0dc50)




More information about the All-commits mailing list