API change.
authorChris Lattner <sabre@nondot.org>
Tue, 1 Feb 2005 01:23:49 +0000 (01:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Feb 2005 01:23:49 +0000 (01:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19959 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/CorrelatedExprs.cpp

index 9697aab52217df9031b3bd8f015500bda040a37b..6f115067941a13f9e0a665d347a513f8d0c50f76 100644 (file)
@@ -634,7 +634,7 @@ void CEE::ReplaceUsesOfValueInRegion(Value *Orig, Value *New,
   assert(Orig != New && "Cannot replace value with itself");
   std::vector<Instruction*> InstsToChange;
   std::vector<PHINode*>     PHIsToChange;
-  InstsToChange.reserve(Orig->use_size());
+  InstsToChange.reserve(Orig->getNumUses());
 
   // Loop over instructions adding them to InstsToChange vector, this allows us
   // an easy way to avoid invalidating the use_iterator at a bad time.