summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
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
commitc429ab2fb12f82aa2a379effabf45caf8c705099 (patch)
treed98e116e532a72990f9960f72315080d79271043 /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
parentd4d683a47be4b663c646ed051a1e296c59a1dd13 (diff)
downloadbcm5719-llvm-c429ab2fb12f82aa2a379effabf45caf8c705099.tar.gz
bcm5719-llvm-c429ab2fb12f82aa2a379effabf45caf8c705099.zip
Fix a bug the last patch exposed in treeadd among others
llvm-svn: 23127
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
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.
OpenPOWER on IntegriCloud