[all-commits] [llvm/llvm-project] 502a50: SemaTemplateDeduction - silence static analyzer ge...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 21 12:07:24 PDT 2019


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

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

  Log Message:
  -----------
  SemaTemplateDeduction - 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: 375443




More information about the All-commits mailing list