mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
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:
@@ -156,7 +156,12 @@ bool Steens::run(Module &M) {
|
|||||||
// call nodes...
|
// call nodes...
|
||||||
//
|
//
|
||||||
std::vector<DSCallSite> &Calls =
|
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(); ) {
|
for (unsigned i = 0; i != Calls.size(); ) {
|
||||||
DSCallSite &CurCall = Calls[i];
|
DSCallSite &CurCall = Calls[i];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user