From d514d8294d13e6a695ed324b415d3a9263313355 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Feb 2005 01:23:31 +0000 Subject: Adjust to changes in APIs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19958 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/FunctionResolution.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Transforms/IPO/FunctionResolution.cpp') diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index b63d98c20d..090755b25c 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -98,11 +98,11 @@ static bool ResolveFunctions(Module &M, std::vector &Globals, // functions and that the Old function has no varargs fns specified. In // otherwords it's just (...) // - if (!Old->use_empty()) { // Avoid making the CPR unless we really need it + if (!Old->use_empty()) { Value *Replacement = Concrete; if (Concrete->getType() != Old->getType()) - Replacement = ConstantExpr::getCast(Concrete,Old->getType()); - NumResolved += Old->use_size(); + Replacement = ConstantExpr::getCast(Concrete, Old->getType()); + NumResolved += Old->getNumUses(); Old->replaceAllUsesWith(Replacement); } -- cgit v1.2.3-18-g5258