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
This commit is contained in:
Chris Lattner 2005-04-09 21:23:24 +00:00
parent cd08e4cb7e
commit 91277ea45c

View File

@ -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);
}