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

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Feb 2 02:36:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8f55f7e0343634e8cf0892883ce7132b7a0dc50
      https://github.com/llvm/llvm-project/commit/f8f55f7e0343634e8cf0892883ce7132b7a0dc50
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-02 (Wed, 02 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.




More information about the All-commits mailing list