aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-03-15 18:42:33 +0000
committerCameron Zwarich <zwarich@apple.com>2011-03-15 18:42:33 +0000
commit6e51c6ad9d9c3c02c7b7692e21645beb68408281 (patch)
tree044a947117ebe992dc7df5aaa3617742058cbc22 /lib/Transforms/Utils/LCSSA.cpp
parent019195229693c1829e6ed5a3f57209728fdcba8f (diff)
Clean up something noticed by Fritz.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r--lib/Transforms/Utils/LCSSA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp
index ade4a43c6c..fce7f15fbb 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();
}