1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

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
This commit is contained in:
Simon Pilgrim 2019-10-02 16:03:45 +00:00
parent 44bb9b9dfc
commit bf14dd016f

View File

@ -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.