]> granicus.if.org Git - clang/commit
DeclBase/DeclCXX/DeclTemplate - silence static analyzer getAs<> null dereference...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 16:58:01 +0000 (16:58 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 3 Oct 2019 16:58:01 +0000 (16:58 +0000)
commitf294fc0727d7d1db043d33162c78d94333572761
tree2f80d6411f726c810781322ebe098b289c0463ee
parent2734b155fee2b4b9c79770b1d754efcfcd406f34
DeclBase/DeclCXX/DeclTemplate - 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@373626 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclBase.cpp
lib/AST/DeclCXX.cpp
lib/AST/DeclTemplate.cpp