[llvm-commits] CVS: llvm/lib/CodeGen/MachineBasicBlock.cpp
Chris Lattner
sabre at nondot.org
Thu Oct 5 18:12:58 PDT 2006
Changes in directory llvm/lib/CodeGen:
MachineBasicBlock.cpp updated: 1.30 -> 1.31
---
Log message:
MachineBasicBlock::splice was incorrectly updating parent pointers on
instructions.
---
Diffs of the changes: (+3 -3)
MachineBasicBlock.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.30 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.31
--- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.30 Tue Oct 3 15:17:24 2006
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp Thu Oct 5 20:12:44 2006
@@ -66,12 +66,12 @@
}
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() {
More information about the llvm-commits
mailing list