mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +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:
parent
44bb9b9dfc
commit
bf14dd016f
@ -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
Block a user