]> granicus.if.org Git - llvm/commit
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)
commit2ae2f592484cb2df6e7f9eaabc48daef75ddb380
tree8a072da8263f2b9209125c96814d2ff3c6e885fe
parentc4c5944aa91fa4bec6456398e9a0ee7ec2649fd4
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375429 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVNHoist.cpp