aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-06 04:07:14 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-06 04:07:14 +0000
commit49460bc49990ddfcf81e6f0670924f896645d9c7 (patch)
tree4cb403891064ca47526276067751f48219ab9e1c
parentdb529a8a5d071610f3a8b467693bc40b073e68ef (diff)
Oops. Scary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128986 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 689e5c9066..4339a81b8f 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -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;