summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-07 04:11:44 +0000
committerChris Lattner <sabre@nondot.org>2006-11-07 04:11:44 +0000
commit94c231f453239a5a1af352d6d4885e622dadf128 (patch)
tree658d595dd12e1a6b20e90c88914267e2e1bcc15e
parente553746e49178c9a52d51e508f0f6d77e5c9f943 (diff)
downloadllvm-94c231f453239a5a1af352d6d4885e622dadf128.tar.gz
Fix PR988 and CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll.
The low part goes in the first operand of expandop, not the second one. llvm-svn: 31487
-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 b1dfc90205ad..59f476792a05 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2039,7 +2039,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
case Expand: {
// Length is too big, just take the lo-part of the length.
SDOperand HiPart;
- ExpandOp(Node->getOperand(3), HiPart, Tmp4);
+ ExpandOp(Node->getOperand(3), Tmp4, HiPart);
break;
}
case Legal: