[all-commits] [llvm/llvm-project] 5e7912: [LowerMatrixIntrinsics] writeFnName - don't derefe...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jan 6 09:10:03 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7912d80fca1f20ee00fadc6c6ec8ac87ccd023
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-01-06 (Thu, 06 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

  Log Message:
  [LowerMatrixIntrinsics] writeFnName - don't dereference a dyn_cast<>. NFC.

dyn_cast<> can return null - use cast<> instead to assert the cast is valid before dereferencing the casted pointer.

Fixes static-analyzer null dereference warning.

More information about the All-commits mailing list