]> granicus.if.org Git - clang/commit
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)
commit0a08067e20b32ab6d2eba89e7a2a5046dd1f528b
tree4e45b1f430921ff58326e3e332cbb7be8539fd84
parent5d5285a4bfa9b092dd99c3fafc28f87cb012c1c9
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGVTables.cpp