[all-commits] [llvm/llvm-project] 10d4b7: CrossDSOCFI - silence static analyzer dyn_cast<> n...

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


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

  Changed paths:
    M llvm/lib/Transforms/IPO/CrossDSOCFI.cpp

  Log Message:
  -----------
  CrossDSOCFI - 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: 375427




More information about the All-commits mailing list