SemaExpr - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 28 Sep 2019 14:01:52 +0000 (14:01 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 28 Sep 2019 14:01:52 +0000 (14:01 +0000)
commit6891c72d0f270c673351bf8dd327114157186e56
tree363277ea7fcebf245594a0f2444605a0fe7d2359
parent520876d83f4cae88443c72b1f1bb93b7b8672bb9
SemaExpr - 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: 373150
clang/lib/Sema/SemaExpr.cpp