mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Clean up something noticed by Fritz.
llvm-svn: 127684
This commit is contained in:
parent
59ba6777c3
commit
333ed540e7
@ -269,7 +269,7 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
|
||||
|
||||
// Remove PHI nodes that did not have any uses rewritten.
|
||||
for (unsigned i = 0, e = AddedPHIs.size(); i != e; ++i) {
|
||||
if (!AddedPHIs[i]->hasNUsesOrMore(1))
|
||||
if (AddedPHIs[i]->use_empty())
|
||||
AddedPHIs[i]->eraseFromParent();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user