[all-commits] [llvm/llvm-project] f55fdd: [MIPS] selectAddrFrameIndexOffset - use cast<> ins...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Apr 5 09:20:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f55fdded794344aade9380c2657895a8294b979e
      https://github.com/llvm/llvm-project/commit/f55fdded794344aade9380c2657895a8294b979e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp

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

The pointer is used immediately below, so assert the cast is correct instead of returning nullptr




More information about the All-commits mailing list