aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-04 18:20:15 +0000
committerChris Lattner <sabre@nondot.org>2006-09-04 18:20:15 +0000
commit5277e4304e9559c13aa42b1d056e828f8f75ff08 (patch)
tree2d4a05bd1eb6199d2cef305525fd7521d2dc8626 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent0c9e0ff24900aa2bcae9518f8b1bdc3fd41dc2ed (diff)
Hack around a regression I introduced yesterday
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 02291d53b6..12b967ba68 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -619,6 +619,9 @@ void LiveIntervals::computeIntervals() {
tm_->getInstrInfo()->get(mi->getOpcode());
DEBUG(std::cerr << MIIndex << "\t" << *mi);
+ // FIXME: Why is this needed?
+ MIIndex = getInstructionIndex(mi);
+
// handle implicit defs
if (tid.ImplicitDefs) {
for (const unsigned* id = tid.ImplicitDefs; *id; ++id)