summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-09 21:23:24 +0000
committerChris Lattner <sabre@nondot.org>2005-04-09 21:23:24 +0000
commite8e070dbfba00e7875d4bcd2587b0cb7ad26e782 (patch)
treebcbb686aa0cb7eafaeed3905243bc186135c07c3 /llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
parent8309a333dd7d8406f4cd75baa735cab13c5976a4 (diff)
downloadbcm5719-llvm-e8e070dbfba00e7875d4bcd2587b0cb7ad26e782.tar.gz
bcm5719-llvm-e8e070dbfba00e7875d4bcd2587b0cb7ad26e782.zip
do not set the root to null if an argument is dead
llvm-svn: 21188
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
index 566d79bade9..44e041a8ba5 100644
--- a/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
@@ -203,8 +203,9 @@ PPC32TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
GPR_idx += delta;
}
ArgOffset += ObjSize;
+ if (newroot.Val)
+ DAG.setRoot(newroot.getValue(1));
- DAG.setRoot(newroot.getValue(1));
ArgValues.push_back(argt);
}
OpenPOWER on IntegriCloud