Cannot modify original call sites vector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-08 21:27:37 +00:00
parent 679e8e1b19
commit 01fb0c75aa

View File

@ -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];