WinException::emitExceptHandlerTable - silence static analyzer dyn_cast<Function...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:32 +0000 (11:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 11:48:32 +0000 (11:48 +0000)
commitc9129cea27188a732fddcd6ce14960e3520486ca
tree17c9419283f9a858ed19e19ad595d18551938784
parent2bb217b5fec3e3b98c25a2d5d8d88f3a0b245a2c
WinException::emitExceptHandlerTable - silence static analyzer dyn_cast<Function> null dereference warning. NFCI.

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

llvm-svn: 373449
llvm/lib/CodeGen/AsmPrinter/WinException.cpp