]> granicus.if.org Git - clang/commit
SemaDeclObjC - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 17 Oct 2019 10:35:29 +0000 (10:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 17 Oct 2019 10:35:29 +0000 (10:35 +0000)
commit4219e20f04a9e809643977e66aa3ee0ef4e13504
tree206053961963ed051a8fb4a23dd4167e8d8ecf4d
parent62e70af15a780dab29b1b47c5f0c25d58475cefe
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.

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