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
This commit is contained in:
Simon Pilgrim
2019-10-02 16:03:45 +00:00
parent 39472f2ea8
commit f8023e3bc6
@@ -161,7 +161,7 @@ static void handlePhiDef(CallInst *Expect) {
return Result;
};
auto *PhiDef = dyn_cast<PHINode>(V);
auto *PhiDef = cast<PHINode>(V);
// Get the first dominating conditional branch of the operand
// i's incoming block.