diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-22 19:08:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-22 19:08:15 +0000 |
commit | 688c8252d216659360325b25a7441861bbf9552d (patch) | |
tree | 3cd2aed780334c643251c2d83bcb9cf8fb4244e3 | |
parent | 7ca04097ad285f8ead7bf242f5ebb7ff3e7ae0a9 (diff) | |
download | external_llvm-688c8252d216659360325b25a7441861bbf9552d.zip external_llvm-688c8252d216659360325b25a7441861bbf9552d.tar.gz external_llvm-688c8252d216659360325b25a7441861bbf9552d.tar.bz2 |
Fix a bug where we were implicitly assuming that there would be at least
one terminator instruction in each basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11714 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index ee9e80d..2306346 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/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" |