From 6e51c6ad9d9c3c02c7b7692e21645beb68408281 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Tue, 15 Mar 2011 18:42:33 +0000 Subject: [PATCH] Clean up something noticed by Fritz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127684 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LCSSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }