was ignoring the legalized chain in this case, fixed SPASS on alpha
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 18 Jan 2006 23:19:08 +0000 (23:19 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 18 Jan 2006 23:19:08 +0000 (23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 51675b801350f810188027a1a625e7f03ab8aba0..6d14c6a3e5e80e5794a233c624ebe5ca6a187528 100644 (file)
@@ -1469,7 +1469,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
       // Expand to CopyFromReg if the target set 
       // StackPointerRegisterToSaveRestore.
       if (unsigned SP = TLI.getStackPointerRegisterToSaveRestore()) {
-        Tmp1 = DAG.getCopyFromReg(Node->getOperand(0), SP, 
+        Tmp1 = DAG.getCopyFromReg(Tmp1, SP, 
                                   Node->getValueType(0));
         AddLegalizedOperand(SDOperand(Node, 0), Tmp1);
         AddLegalizedOperand(SDOperand(Node, 1), Tmp1.getValue(1));