[all-commits] [llvm/llvm-project] a867cc: SemaDeclObjC - silence static analyzer getAs<> nul...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 17 03:34:23 PDT 2019


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

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

  Log Message:
  -----------
  SemaDeclObjC - 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: 375097




More information about the All-commits mailing list