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)
commit91b4085b034ef3a432b0063175f8a3bd96ee089c
tree431891d03fcd62cb020addbcf36d82fd18f4394e
parent96ab296ea40e6ffb563496c147bfa3d9a55b2cea
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.

llvm-svn: 373481
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp