From 16ae43e90174b5bba0ee7a926bf687e501960c9f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Oct 2006 01:12:44 +0000 Subject: MachineBasicBlock::splice was incorrectly updating parent pointers on instructions. llvm-svn: 30760 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 3b486d6..318259d 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -66,12 +66,12 @@ void ilist_traits::removeNodeFromList(MachineInstr* N) { } void ilist_traits::transferNodesFromList( - iplist >& toList, + iplist >& fromList, ilist_iterator first, ilist_iterator last) { - if (parent != toList.parent) + if (parent != fromList.parent) for (; first != last; ++first) - first->parent = toList.parent; + first->parent = parent; } MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() { -- cgit v1.1