projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679e8e1
)
Cannot modify original call sites vector
author
Chris Lattner
<sabre@nondot.org>
Fri, 8 Nov 2002 21:27:37 +0000
(21:27 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 8 Nov 2002 21:27:37 +0000
(21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4634
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/Steensgaard.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/Steensgaard.cpp
b/lib/Analysis/DataStructure/Steensgaard.cpp
index 028bf919e2f0b535cc3a72d29a2e4d83b9fe82d0..aad8657d1daf50a4f7fa415c05f6d800184b5239 100644
(file)
--- a/
lib/Analysis/DataStructure/Steensgaard.cpp
+++ b/
lib/Analysis/DataStructure/Steensgaard.cpp
@@
-156,7
+156,12
@@
bool Steens::run(Module &M) {
// call nodes...
//
std::vector<DSCallSite> &Calls =
- ResultGraph->getFunctionCalls();
+ ResultGraph->getAuxFunctionCalls();
+ assert(Calls.empty() && "Aux call list is already in use??");
+
+ // Start with a copy of the original call sites...
+ Calls = ResultGraph->getFunctionCalls();
+
for (unsigned i = 0; i != Calls.size(); ) {
DSCallSite &CurCall = Calls[i];