forked from OSchip/llvm-project
MachineBasicBlock::splice was incorrectly updating parent pointers on
instructions. llvm-svn: 30760
This commit is contained in:
parent
df9ac47e5e
commit
16ae43e901
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue