Clean up something noticed by Fritz.

llvm-svn: 127684
This commit is contained in:
Cameron Zwarich 2011-03-15 18:42:33 +00:00
parent 42401d6af2
commit dbb27393cc
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}