ObjCMethodDecl::findPropertyDecl - fix static analyzer null dereference warnings...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 15:36:33 +0000 (15:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 12 Mar 2020 15:36:49 +0000 (15:36 +0000)
commit69993350aeed08b6392f614c510697579302a39b
tree982d2bc690817e9c075ec82c305dcbc54574c78e
parentd9bf79f4e9952acca1fa353e39bcee89cd69550f
ObjCMethodDecl::findPropertyDecl  - fix static analyzer null dereference warnings. NFCI.

All paths dereference the ClassDecl pointer, so use a cast<> instead of dyn_cast<>, assert that its not null and remove the remaining null tests.
clang/lib/AST/DeclObjC.cpp