]> granicus.if.org Git - clang/commit
SemaStmt - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:20:42 +0000 (13:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 5 Oct 2019 13:20:42 +0000 (13:20 +0000)
commitd8eb1a18aa2eb16664932f75fadf6b63671831eb
tree0c829a9b5ee3c041c5051fadc73cea8193e6bd1c
parentf39ad0d7e84a97caabb7279725cc437b12b50a2b
SemaStmt - 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@373824 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp