]> granicus.if.org Git - llvm/commit
LowerExpectIntrinsic handlePhiDef - silence static analyzer dyn_cast<PHINode> null...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:45 +0000 (16:03 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:03:45 +0000 (16:03 +0000)
commitf8023e3bc69e13f7ca7cc96b7bef5a76fc110bff
tree039555413c9abbf4afe7b8efaef31b93779883e2
parent39472f2ea82de21ce245b568d91e1c8e968d4ba6
LowerExpectIntrinsic handlePhiDef - silence static analyzer dyn_cast<PHINode> null dereference warning. NFCI.

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

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