aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-29 01:07:02 +0000
committerChris Lattner <sabre@nondot.org>2005-08-29 01:07:02 +0000
commitefa6abcb957b9002a7e6708eb6f7885a93957ea7 (patch)
treebd8adb2b25a4f05baa3e85d2b63dcc647087ead5
parent2fef809b5b6a38d38aadc3399b5f7a78b537d092 (diff)
Fix a bug the last patch exposed in treeadd among others
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23127 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 2503e26e61..e7e1c9ed87 100644
--- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -87,7 +87,7 @@ namespace {
virtual void InstructionSelectBasicBlock(SelectionDAG &DAG) {
DEBUG(BB->dump());
// Select target instructions for the DAG.
- Select(DAG.getRoot());
+ DAG.setRoot(Select(DAG.getRoot()));
DAG.RemoveDeadNodes();
// Emit machine code to BB.