summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-09 14:22:57 +0000
committerDan Gohman <gohman@apple.com>2009-09-09 14:22:57 +0000
commit607a0508ba5732716809b926a271a9152bdcec12 (patch)
treef761e501b54604a55979ba00f04da3933d9f8c38 /lib/CodeGen
parent43b1b0e4ff5e74acafe104a6954222a0003b3ea1 (diff)
downloadllvm-607a0508ba5732716809b926a271a9152bdcec12.tar.gz
llvm-607a0508ba5732716809b926a271a9152bdcec12.tar.bz2
llvm-607a0508ba5732716809b926a271a9152bdcec12.tar.xz
When widening a vector load, use the correct chain. This fixes PR4891.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 13f8ff7b41..67c63b2ee7 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -1678,7 +1678,7 @@ SDValue DAGTypeLegalizer::WidenVecRes_LOAD(SDNode *N) {
// Modified the chain - switch anything that used the old chain to use
// the new one.
- ReplaceValueWith(SDValue(N, 1), Chain);
+ ReplaceValueWith(SDValue(N, 1), NewChain);
return Result;
}