mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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:
parent
fa404e8a76
commit
513e52ec4e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user