forked from OSchip/llvm-project
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:
parent
96ab296ea4
commit
91b4085b03
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue