From 49460bc49990ddfcf81e6f0670924f896645d9c7 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 6 Apr 2011 04:07:14 +0000 Subject: [PATCH] Oops. Scary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128986 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAllocGreedy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1