aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelPattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/PowerPC/PPCISelPattern.cpp')
-rw-r--r--lib/Target/PowerPC/PPCISelPattern.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp
index 566d79bade..44e041a8ba 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);
}