GVNHoist - silence static analyzer dyn_cast<> null dereference warning in hasEHOrLoad...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 17:15:49 +0000 (17:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 21 Oct 2019 17:15:49 +0000 (17:15 +0000)
commit57e8f0b05545ded4f2da1979ee9b19af55f3c004
tree1cb80a906190278ffc923d246edb894b7b755e31
parent783d3c4f0aae65483e8fa8281f84774e09b65a49
GVNHoist - silence static analyzer dyn_cast<> null dereference warning in hasEHOrLoadsOnPath call. NFCI.

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

llvm-svn: 375429
llvm/lib/Transforms/Scalar/GVNHoist.cpp