From: Chris Lattner Date: Mon, 29 Aug 2005 01:07:02 +0000 (+0000) Subject: Fix a bug the last patch exposed in treeadd among others X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=efa6abcb957b9002a7e6708eb6f7885a93957ea7;p=oota-llvm.git 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 --- diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 2503e26e614..e7e1c9ed874 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.