From 33922eb64811ac758b5ebd2bc79150298f57ba7b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Oct 2003 16:43:24 +0000 Subject: [PATCH] Remove usage of use_size() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9134 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/InstForest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index e0047965f1b..a001f5a1a3e 100644 --- a/include/llvm/Analysis/InstForest.h +++ b/include/llvm/Analysis/InstForest.h @@ -218,7 +218,7 @@ inline std::ostream &operator<<(std::ostream &o, const InstForest &IF){ // template bool InstTreeNode::CanMergeInstIntoTree(Instruction *I) { - if (I->use_size() > 1) return false; + if (!I->use_empty() && !I->hasOneUse()) return false; return I->getParent() == cast(getValue())->getParent(); } -- 2.34.1