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
commitfa9aa2b424d0a7d9f7201f8fdcf5ccfa05db3a80 (patch)
tree09b80319c85fb96175f1979c912c420864c330ca
parent1b896caa6bc0575801e3ac2fa9ff23f67fab13f9 (diff)
downloadllvm-fa9aa2b424d0a7d9f7201f8fdcf5ccfa05db3a80.tar.gz
llvm-fa9aa2b424d0a7d9f7201f8fdcf5ccfa05db3a80.tar.bz2
llvm-fa9aa2b424d0a7d9f7201f8fdcf5ccfa05db3a80.tar.xz
Fix PR988 and CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll.
The low part goes in the first operand of expandop, not the second one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31487 91177308-0d34-0410-b5e6-96231b3b80d8
-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 b1dfc90205..59f476792a 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/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: