[all-commits] [llvm/llvm-project] 0c5df8: IndVarSimplify - silence static analyzer dyn_cast<...

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


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

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

  Log Message:
  -----------
  IndVarSimplify - 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: 375426




More information about the All-commits mailing list