mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Fixed non-const iterator error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb6c8f53b4
commit
481630dee5
@ -204,7 +204,7 @@ std::auto_ptr<PBQPRAProblem> PBQPBuilder::build(
|
||||
addSpillCosts(g.getNodeCosts(node), spillCost);
|
||||
}
|
||||
|
||||
for (RegSet::iterator vr1Itr = vregs.begin(), vrEnd = vregs.end();
|
||||
for (RegSet::const_iterator vr1Itr = vregs.begin(), vrEnd = vregs.end();
|
||||
vr1Itr != vrEnd; ++vr1Itr) {
|
||||
unsigned vr1 = *vr1Itr;
|
||||
const LiveInterval &l1 = lis->getInterval(vr1);
|
||||
|
Loading…
Reference in New Issue
Block a user