mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-07 21:09:21 +00:00
pass dereferenced iterator to dyn_cast
llvm-svn: 109098
This commit is contained in:
parent
197322c365
commit
87ef691878
@ -949,7 +949,7 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *BB1) {
|
||||
UI != E; ++UI) {
|
||||
// Ignore any user that is not a PHI node in BB2. These can only occur in
|
||||
// unreachable blocks, because they would not be dominated by the instr.
|
||||
PHINode *PN = dyn_cast<PHINode>(UI);
|
||||
PHINode *PN = dyn_cast<PHINode>(*UI);
|
||||
if (!PN || PN->getParent() != BB2)
|
||||
return false;
|
||||
PHIUses.push_back(PN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user