From c429ab2fb12f82aa2a379effabf45caf8c705099 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Aug 2005 01:07:02 +0000 Subject: Fix a bug the last patch exposed in treeadd among others llvm-svn: 23127 --- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 2503e26e614..e7e1c9ed874 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/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. -- cgit v1.2.3