]> granicus.if.org Git - llvm/commit
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)
commit51c6eb1c5a5b1cb3f97d925a7fc4523c75411658
treebe988d8b81065884527de36062234f32f18793e6
parent30212561a19447fef3f2259a5d608ecc0af4ad07
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/FunctionImportUtils.cpp