1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fixed non-const iterator error.

llvm-svn: 114273
This commit is contained in:
Lang Hames 2010-09-18 09:49:08 +00:00
parent 4a8c999803
commit 2d87a43549

View File

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