summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-01-18 23:19:08 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-01-18 23:19:08 +0000
commit7599b6e4af74b94a54fac555a3721e843279293f (patch)
tree71948f4f91097123f3cd4fad16d46750782eaaaf /llvm/lib/CodeGen
parent88f3d3f8935cab193164ae85703cc8267af64c23 (diff)
downloadbcm5719-llvm-7599b6e4af74b94a54fac555a3721e843279293f.tar.gz
bcm5719-llvm-7599b6e4af74b94a54fac555a3721e843279293f.zip
was ignoring the legalized chain in this case, fixed SPASS on alpha
llvm-svn: 25428
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 51675b80135..6d14c6a3e5e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -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));
OpenPOWER on IntegriCloud