MachineBasicBlock::splice was incorrectly updating parent pointers on

instructions.

llvm-svn: 30760
This commit is contained in:
Chris Lattner 2006-10-06 01:12:44 +00:00
parent df9ac47e5e
commit 16ae43e901
1 changed files with 3 additions and 3 deletions

View File

@ -66,12 +66,12 @@ void ilist_traits<MachineInstr>::removeNodeFromList(MachineInstr* N) {
}
void ilist_traits<MachineInstr>::transferNodesFromList(
iplist<MachineInstr, ilist_traits<MachineInstr> >& toList,
iplist<MachineInstr, ilist_traits<MachineInstr> >& fromList,
ilist_iterator<MachineInstr> first,
ilist_iterator<MachineInstr> last) {
if (parent != toList.parent)
if (parent != fromList.parent)
for (; first != last; ++first)
first->parent = toList.parent;
first->parent = parent;
}
MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() {