[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 8 15:28:00 PST 2002
Changes in directory llvm/lib/Analysis/DataStructure:
Steensgaard.cpp updated: 1.9 -> 1.10
---
Log message:
Cannot modify original call sites vector
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.9 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.10
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.9 Thu Nov 7 23:01:14 2002
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp Fri Nov 8 15:27:37 2002
@@ -156,7 +156,12 @@
// 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];
More information about the llvm-commits
mailing list