summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-01 01:23:31 +0000
committerChris Lattner <sabre@nondot.org>2005-02-01 01:23:31 +0000
commitd6a4492f812b2c7348231210b31799dd6d06ae60 (patch)
treec3537a809c942201e59fbb3a49b9888b63620981 /llvm/lib/Transforms/IPO/FunctionResolution.cpp
parentf98a7bffb33449c3f920f3311dc86cd0fbc71642 (diff)
downloadbcm5719-llvm-d6a4492f812b2c7348231210b31799dd6d06ae60.tar.gz
bcm5719-llvm-d6a4492f812b2c7348231210b31799dd6d06ae60.zip
Adjust to changes in APIs
llvm-svn: 19958
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionResolution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
index b63d98c20dc..090755b25cc 100644
--- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
@@ -98,11 +98,11 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
// functions and that the Old function has no varargs fns specified. In
// otherwords it's just <retty> (...)
//
- 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);
}
OpenPOWER on IntegriCloud