From 242f2557cc242b2d132e5a3e6c3a98961a7e4349 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 30 Sep 2005 23:43:37 +0000 Subject: [PATCH] Should be using flag and not chain. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23572 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 190412a842a..c8850cd3bdd 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -1351,7 +1351,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) { Chain.getValue(1)).getValue(1); CallResults.push_back(Chain.getValue(0)); Chain = CurDAG->getCopyFromReg(Chain, PPC::R3, MVT::i32, - Chain.getValue(1)).getValue(1); + Chain.getValue(2)).getValue(1); CallResults.push_back(Chain.getValue(0)); } else { Chain = CurDAG->getCopyFromReg(Chain, PPC::R3, MVT::i32,