projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d514d82
)
API change.
author
Chris Lattner
<sabre@nondot.org>
Tue, 1 Feb 2005 01:23:49 +0000
(
01:23
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CorrelatedExprs.cpp
b/lib/Transforms/Scalar/CorrelatedExprs.cpp
index 9697aab52217df9031b3bd8f015500bda040a37b..6f115067941a13f9e0a665d347a513f8d0c50f76 100644
(file)
--- a/
lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/
lib/Transforms/Scalar/CorrelatedExprs.cpp
@@
-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.