aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/ExprTypeConvert.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
committerChris Lattner <sabre@nondot.org>2003-10-15 16:48:29 +0000
commitfd05924946ebfcfb3409b21996cfd0836e4ddb31 (patch)
tree72c12deace7b040069b69109a7405311e0002581 /lib/Transforms/ExprTypeConvert.cpp
parent33922eb64811ac758b5ebd2bc79150298f57ba7b (diff)
Decrease usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r--lib/Transforms/ExprTypeConvert.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp
index d076f9a4f7..5adf12b7e2 100644
--- a/lib/Transforms/ExprTypeConvert.cpp
+++ b/lib/Transforms/ExprTypeConvert.cpp
@@ -1271,7 +1271,7 @@ static void RecursiveDelete(ValueMapCache &Cache, Instruction *I) {
}
ValueHandle::~ValueHandle() {
- if (Operands[0]->use_size() == 1) {
+ if (Operands[0]->hasOneUse()) {
Value *V = Operands[0];
Operands[0] = 0; // Drop use!