[all-commits] [llvm/llvm-project] 8b8e87: [PowerPC] Fix a nullptr dereference

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Nov 16 14:57:52 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b8e8704cebe2b989cd04938650945c77baf2e01
      https://github.com/llvm/llvm-project/commit/8b8e8704cebe2b989cd04938650945c77baf2e01
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

  Log Message:
  -----------
  [PowerPC] Fix a nullptr dereference

LiMI1/LiMI2 can be null, so don't call a method on them before checking.
Found by ubsan.




More information about the All-commits mailing list