summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-22 19:08:15 +0000
committerChris Lattner <sabre@nondot.org>2004-02-22 19:08:15 +0000
commit84b406650e89e9931954a9937ff75732e72023f4 (patch)
treeade6658389f264681c598ffae2dc7cd59ad770e7 /llvm/lib/CodeGen
parentfae75640277d73c938010abf2786f9b491e419df (diff)
downloadbcm5719-llvm-84b406650e89e9931954a9937ff75732e72023f4.tar.gz
bcm5719-llvm-84b406650e89e9931954a9937ff75732e72023f4.zip
Fix a bug where we were implicitly assuming that there would be at least
one terminator instruction in each basic block. llvm-svn: 11714
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index ee9e80db95b..23063461d70 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -160,7 +160,7 @@ namespace {
/// the virtual register slot specified by VirtReg. It then updates the RA
/// data structures to indicate the fact that PhysReg is now available.
///
- void spillVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
+ void spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
unsigned VirtReg, unsigned PhysReg);
/// spillPhysReg - This method spills the specified physical register into
@@ -258,7 +258,7 @@ void RA::removePhysReg(unsigned PhysReg) {
/// virtual register slot specified by VirtReg. It then updates the RA data
/// structures to indicate the fact that PhysReg is now available.
///
-void RA::spillVirtReg(MachineBasicBlock &MBB, MachineInstr *I,
+void RA::spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
unsigned VirtReg, unsigned PhysReg) {
assert(VirtReg && "Spilling a physical register is illegal!"
" Must not have appropriate kill for the register or use exists beyond"
OpenPOWER on IntegriCloud