Fix a bug the last patch exposed in treeadd among others
authorChris Lattner <sabre@nondot.org>
Mon, 29 Aug 2005 01:07:02 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Aug 2005 01:07:02 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23127 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index 2503e26e614fc30f8f8fdf5d3e1611386f40168f..e7e1c9ed874bc6c4e6154daf6012789a35157cdb 100644 (file)
@@ -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.