From: Jakob Stoklund Olesen Date: Wed, 6 Apr 2011 04:07:14 +0000 (+0000) Subject: Oops. Scary. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=49460bc49990ddfcf81e6f0670924f896645d9c7;p=oota-llvm.git Oops. Scary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128986 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 689e5c90666..4339a81b8f4 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -463,7 +463,7 @@ float RAGreedy::calcSplitConstraints(unsigned PhysReg) { ArrayRef 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;