diff options
author | Lang Hames <lhames@gmail.com> | 2010-09-18 09:49:08 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2010-09-18 09:49:08 +0000 |
commit | 481630dee5f221c04bb26fe12f0887b4f25f8455 (patch) | |
tree | d738ffc11d831e2e4addc174eb60dc28d6801cc9 /lib/CodeGen/RegAllocPBQP.cpp | |
parent | eb6c8f53b4df1488f3d07c11af8f754cc4620f3a (diff) |
Fixed non-const iterator error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 6b2e5c0480..6629b38fb7 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -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); |