CGBuiltin - silence static analyzer getAs<> null dereference warnings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:32 +0000 (10:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 16 Oct 2019 10:38:32 +0000 (10:38 +0000)
commit729a2f6c2bd8a4f2254e3f8a93e8e0c5120ebd35
treef6797a49fd67bbe6ecfd4be606a66252ceb8a2d1
parentc598ef7f2432ab72fda58113cbe7a11a1a7e130c
CGBuiltin - 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: 374987
clang/lib/CodeGen/CGBuiltin.cpp