[llvm-commits] [llvm] r128986 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Apr 5 21:07:15 PDT 2011
Author: stoklund
Date: Tue Apr 5 23:07:14 2011
New Revision: 128986
URL: http://llvm.org/viewvc/llvm-project?rev=128986&view=rev
Log:
Oops. Scary.
Modified:
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=128986&r1=128985&r2=128986&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Tue Apr 5 23:07:14 2011
@@ -463,7 +463,7 @@
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;
More information about the llvm-commits
mailing list