mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-23 01:31:05 +00:00
MachineBasicBlock::splice was incorrectly updating parent pointers on
instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
786225adf0
commit
5504602836
@ -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…
x
Reference in New Issue
Block a user