Fix handling of calls in functions that use vectors. This fixes a crash on

the code in GCC PR26546.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-17 22:10:08 +00:00
parent 5edb8d270c
commit 80edfb3af5

View File

@ -433,19 +433,7 @@ bool SelectionDAGLegalize::LegalizeAllNodesNotLeadingTo(SDNode *N,
if (OperandsLeadToDest) return true;
// Okay, this node looks safe, legalize it and return false.
switch (getTypeAction(N->getValueType(0))) {
case Legal:
LegalizeOp(SDOperand(N, 0));
break;
case Promote:
PromoteOp(SDOperand(N, 0));
break;
case Expand: {
SDOperand X, Y;
ExpandOp(SDOperand(N, 0), X, Y);
break;
}
}
HandleOp(SDOperand(N, 0));
return false;
}