mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
MachineBasicBlock::splice was incorrectly updating parent pointers on
instructions. llvm-svn: 30760
This commit is contained in:
parent
275825195a
commit
5fc3bb074c
@ -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
Block a user