aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-13 01:42:45 +0000
committerChris Lattner <sabre@nondot.org>2005-07-13 01:42:45 +0000
commit6814f1522dd7cdeb4674a9ad199f482a2e7aaea1 (patch)
treea91660f81900421662cdc465f691573b0376f08a /lib/CodeGen
parent92b5376154ce05ac3a660b6f887de85239bbd65c (diff)
Fix test/Regression/CodeGen/Generic/2005-07-12-memcpy-i64-length.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 0fc06c0560..a05e5937a6 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -906,7 +906,12 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
SDOperand Tmp4;
switch (getTypeAction(Node->getOperand(3).getValueType())) {
- case Expand: assert(0 && "Cannot expand this yet!");
+ case Expand: {
+ // Length is too big, just take the lo-part of the length.
+ SDOperand HiPart;
+ ExpandOp(Node->getOperand(3), HiPart, Tmp4);
+ break;
+ }
case Legal:
Tmp4 = LegalizeOp(Node->getOperand(3));
break;