SemaDeclAttr - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 15:02:46 +0000 (15:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 15:02:46 +0000 (15:02 +0000)
commit237d0af7a8b8b9b507f86846842a51657810b20d
tree5cc94a4dcedf8cbe907b0075ef72fb65f167c5eb
parent0abbb154ca202349097e1418cd716034985e1ffd
SemaDeclAttr - 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.

llvm-svn: 373753
clang/lib/Sema/SemaDeclAttr.cpp