Oops. Scary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2011-04-06 04:07:14 +00:00
parent db529a8a5d
commit 49460bc499

View File

@ -463,7 +463,7 @@ float RAGreedy::calcSplitConstraints(unsigned PhysReg) {
ArrayRef<unsigned> ThroughBlocks = SA->getThroughBlocks();
SplitConstraints.resize(UseBlocks.size() + ThroughBlocks.size());
for (unsigned i = 0; i != ThroughBlocks.size(); ++i) {
SpillPlacement::BlockConstraint BC = SplitConstraints[UseBlocks.size() + i];
SpillPlacement::BlockConstraint &BC = SplitConstraints[UseBlocks.size()+i];
BC.Number = ThroughBlocks[i];
BC.Entry = SpillPlacement::DontCare;
BC.Exit = SpillPlacement::DontCare;