[all-commits] [llvm/llvm-project] afb163: SemaExceptionSpec - silence static analyzer getAs<...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 21 11:27:21 PDT 2019


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

  Changed paths:
    M clang/lib/Sema/SemaExceptionSpec.cpp

  Log Message:
  -----------
  SemaExceptionSpec - silence static analyzer getAs<> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<> directly and if not assert will fire for us.

llvm-svn: 375440




More information about the All-commits mailing list