FunctionImportGlobalProcessing::processGlobalForThinLTO - silence static analyzer...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 15:49:19 +0000 (15:49 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 15:49:19 +0000 (15:49 +0000)
commitf71f23d14d4353f823ddf93680ddac86e95819d7
tree26b8637a80f4db36c73323a7f047788b1868fdb2
parentaae97bfd0c323edef5363ce296c9f6f79db410cf
FunctionImportGlobalProcessing::processGlobalForThinLTO - silence static analyzer dyn_cast<FunctionSummary> null dereference warning. NFCI.

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

llvm-svn: 373097
llvm/lib/Transforms/Utils/FunctionImportUtils.cpp