mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
Clean up something noticed by Fritz.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0191952296
commit
6e51c6ad9d
@ -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