]> granicus.if.org Git - clang/commit
SemaTemplateDeduction - silence static analyzer getAs<> null dereference warnings...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 19:08:31 +0000 (19:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 19:08:31 +0000 (19:08 +0000)
commitc12eb40f6c6eca83e99bc20f6813dc32e3e68831
tree5f6a5692b259139651a6fbaeb9490d6943beca67
parentfd456e42ad4108bc4feb14ba37a5c0cb267744a2
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375443 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp