[all-commits] [llvm/llvm-project] 5f4549: [SystemZ] lowerDYNAMIC_STACKALLOC_XPLINK - use cas...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 17 03:56:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f4549c372676840a70dba455fea6b44c83391d6
      https://github.com/llvm/llvm-project/commit/5f4549c372676840a70dba455fea6b44c83391d6
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

  Log Message:
  -----------
  [SystemZ] lowerDYNAMIC_STACKALLOC_XPLINK - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is always dereferenced, so assert the cast is correct instead of returning nullptr




More information about the All-commits mailing list