[all-commits] [llvm/llvm-project] 783d3c: GuardWidening - silence static analyzer null deref...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 21 10:15:24 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 783d3c4f0aae65483e8fa8281f84774e09b65a49
      https://github.com/llvm/llvm-project/commit/783d3c4f0aae65483e8fa8281f84774e09b65a49
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

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

  Log Message:
  -----------
  GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.

llvm-svn: 375428


  Commit: 57e8f0b05545ded4f2da1979ee9b19af55f3c004
      https://github.com/llvm/llvm-project/commit/57e8f0b05545ded4f2da1979ee9b19af55f3c004
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

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

  Log Message:
  -----------
  GVNHoist - silence static analyzer dyn_cast<> null dereference warning in hasEHOrLoadsOnPath call. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 375429


  Commit: ae9971255990a4f3cf93fa81a5b44dabd2aa747c
      https://github.com/llvm/llvm-project/commit/ae9971255990a4f3cf93fa81a5b44dabd2aa747c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

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

  Log Message:
  -----------
  SystemZISelLowering - supportedAddressingMode - silence static analyzer dyn_cast<> null dereference warning. NFCI.

The static analyzer is warning about a potential null dereference, but we should be able to use cast<> directly and if not assert will fire for us.

llvm-svn: 375430


Compare: https://github.com/llvm/llvm-project/compare/10d4b752a7fc...ae9971255990


More information about the All-commits mailing list