[all-commits] [llvm/llvm-project] 3ec83e: JumpThreadingPass::UnfoldSelectInstr - silence sta...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 17 04:18:38 PDT 2019


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

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

  Log Message:
  -----------
  JumpThreadingPass::UnfoldSelectInstr - 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: 375103




More information about the All-commits mailing list