]> granicus.if.org Git - clang/commit
SemaExprCXX - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 17 Oct 2019 11:12:31 +0000 (11:12 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 17 Oct 2019 11:12:31 +0000 (11:12 +0000)
commit5632b3f285e75da13100c7198a058582ea29cb90
tree7cb618a632966d72a3892166f337c68ba8093296
parent4219e20f04a9e809643977e66aa3ee0ef4e13504
SemaExprCXX - 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@375101 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp