]> granicus.if.org Git - clang/commit
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)
commitca954c8a5b16dc2552fec5b12104eb8185dc0bcb
treeeef3562c320f93ac1579d9e543c83fd55aa216cf
parent9fde01ce6d48fea18e196f6a72283b1fb355128d
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373447 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp