aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-06 01:12:44 +0000
committerChris Lattner <sabre@nondot.org>2006-10-06 01:12:44 +0000
commit16ae43e90174b5bba0ee7a926bf687e501960c9f (patch)
tree9cad83d861354f07c381479616ba257e89b9d681 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentdf9ac47e5e02fa6ac22813d1fe620a88eb66f5bf (diff)
downloadllvm-16ae43e90174b5bba0ee7a926bf687e501960c9f.zip
llvm-16ae43e90174b5bba0ee7a926bf687e501960c9f.tar.gz
llvm-16ae43e90174b5bba0ee7a926bf687e501960c9f.tar.bz2
MachineBasicBlock::splice was incorrectly updating parent pointers on
instructions. llvm-svn: 30760
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp6
1 files changed, 3 insertions, 3 deletions
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<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() {