[all-commits] [llvm/llvm-project] 22e596: [AArch64] Fix debug printing crash in AArch64Redun...

David Green via All-commits all-commits at lists.llvm.org
Wed Aug 23 03:49:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22e596e986511b6f7a4ef2ffbd7d6fefe5d02607
      https://github.com/llvm/llvm-project/commit/22e596e986511b6f7a4ef2ffbd7d6fefe5d02607
  Author: David Green <david.green at arm.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64RedundantCopyElimination.cpp

  Log Message:
  -----------
  [AArch64] Fix debug printing crash in AArch64RedundantCopyElimination

The LastChange can be MBB->end(), so it is not valid to dereference it for
printing. Fix the DEBUG statement to check for end() and handle it specially.




More information about the All-commits mailing list