From: Jim Laskey Date: Fri, 30 Sep 2005 23:43:37 +0000 (+0000) Subject: Should be using flag and not chain. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=242f2557cc242b2d132e5a3e6c3a98961a7e4349;p=oota-llvm.git Should be using flag and not chain. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23572 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,