aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit8ff318b7fb6185e94403c0a902f1132141847ac5 (patch)
tree2a05631da049b34c675a1d38c6af1e8cff62ce80 /lib
parent1cdd5c6e113a697c68d361bb8a8cae9f260376d3 (diff)
downloadexternal_llvm-8ff318b7fb6185e94403c0a902f1132141847ac5.zip
external_llvm-8ff318b7fb6185e94403c0a902f1132141847ac5.tar.gz
external_llvm-8ff318b7fb6185e94403c0a902f1132141847ac5.tar.bz2
was ignoring the legalized chain in this case, fixed SPASS on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 51675b8..6d14c6a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/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));