diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index ade4a43c6cb..fce7f15fbb6 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -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(); }