Type - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:36 +0000 (16:03 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:36 +0000 (16:03 +0000)
commit96ab296ea40e6ffb563496c147bfa3d9a55b2cea
tree03bb40c8a2515b58fe98db03422002d5c4a8daeb
parentc4a7b912c26e30b5793f16ddf920a2db762c695a
Type - 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: 373480
clang/lib/AST/Type.cpp