CGVTables - silence static analyzer getAs<FunctionProtoType> null dereference warning...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 1 Oct 2019 22:02:46 +0000 (22:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 1 Oct 2019 22:02:46 +0000 (22:02 +0000)
commit5e0a0b707b1270bb9f80b7cb92f0363a0e0d961f
tree34ed7016fed8a23a54b4bd8cd38e117db3fc8e90
parent912870573c5f55b3f6dc4494a608e3ee9c2f730d
CGVTables - silence static analyzer getAs<FunctionProtoType> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but we should be able to use castAs<FunctionProtoType> directly and if not assert will fire for us.

llvm-svn: 373398
clang/lib/CodeGen/CGVTables.cpp