Fix a minor bug legalizing dynamic_stackalloc. This allows us to compile

std::__pad<wchar_t, std::char_traits<wchar_t> >::_S_pad(std::ios_base&, wchar_t, wchar_t*, wchar_t const*, int, int, bool)

from libstdc++


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-09 19:07:54 +00:00
parent fa404e8a76
commit 513e52ec4e

View File

@ -315,6 +315,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
Tmp3 != Node->getOperand(2))
Result = DAG.getNode(ISD::DYNAMIC_STACKALLOC, Node->getValueType(0),
Tmp1, Tmp2, Tmp3);
else
Result = Op.getValue(0);
// Since this op produces two values, make sure to remember that we
// legalized both of them.