Should be using flag and not chain.
authorJim Laskey <jlaskey@mac.com>
Fri, 30 Sep 2005 23:43:37 +0000 (23:43 +0000)
committerJim Laskey <jlaskey@mac.com>
Fri, 30 Sep 2005 23:43:37 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelDAGToDAG.cpp

index 190412a842a12de0adc9c8983afaa43b4dacdfcb..c8850cd3bddc9d35db887e4f85005d0cef1721aa 100644 (file)
@@ -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,