summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-20 06:41:12 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-20 06:41:12 +0000
commit22de21ea805e6956c1d47f048bb928713ebc7dec (patch)
tree283547906266b5b75d3dbb3a18287cd7c4e48d55 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parent99983d569e5ade572652f5c4776f9d5fb06bd651 (diff)
downloadbcm5719-llvm-22de21ea805e6956c1d47f048bb928713ebc7dec.tar.gz
bcm5719-llvm-22de21ea805e6956c1d47f048bb928713ebc7dec.zip
Fix crash in debug output.
llvm-svn: 11659
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index b24f6c851c8..25c37f6d1a8 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -735,7 +735,7 @@ void RA::addSpillCode(IntervalPtrs::value_type li, int slot)
DEBUG(std::cerr << "\t\t\t\tadded store for reg" << li->reg
<< " to ss#" << slot << " after: \t\t"
<< LiveIntervals::getBaseIndex(index) << " \t";
- prior(mi,2)->print(std::cerr, *tm_));
+ mi->print(std::cerr, *tm_));
}
}
}
OpenPOWER on IntegriCloud