From: Chris Lattner Date: Sat, 9 Apr 2005 21:23:24 +0000 (+0000) Subject: do not set the root to null if an argument is dead X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=91277ea45c7a6f052dd588edee51644f23194619;p=oota-llvm.git do not set the root to null if an argument is dead git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index 566d79bade9..44e041a8ba5 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.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); }