[all-commits] [llvm/llvm-project] 699933: ObjCMethodDecl::findPropertyDecl - fix static ana...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Mar 12 08:44:06 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 69993350aeed08b6392f614c510697579302a39b
https://github.com/llvm/llvm-project/commit/69993350aeed08b6392f614c510697579302a39b
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M clang/lib/AST/DeclObjC.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list