SemaInit - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 14:02:18 +0000 (14:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 14:02:18 +0000 (14:02 +0000)
commit920ff02ece54bb38fcd91dfae265a1bfd0fb3c69
tree15453e51c70d6a25153f15e1b0eea8ba0012d465
parent6fa696fb08d54071daac0d867d783d12b9dabd65
SemaInit - 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: 373474
clang/lib/Sema/SemaInit.cpp