ASTContext - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:06 +0000 (11:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:06 +0000 (11:48 +0000)
commiteed4b122eff653a8a00110ce33270e1b92ea41ca
tree33c5e5997e4c548875a9d2c7c4eddb810f821446
parentc9b5ab8b1c7f40983538dc3c06f3db6d04364ca8
ASTContext - silence static analyzer getAs<> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but we should be able to use castAs<> directly and if not assert will fire for us.

llvm-svn: 373447
clang/lib/AST/ASTContext.cpp