diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-09 19:07:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-09 19:07:54 +0000 |
| commit | 02f5ce20775cb2a174b68cf2b8935248a3e16b78 (patch) | |
| tree | d2406d5cea20eeaca0f927a59214f482ea3935d7 /llvm/lib/CodeGen | |
| parent | ec26b48d61b92d803e1840c2addf49e0cb6a496a (diff) | |
| download | bcm5719-llvm-02f5ce20775cb2a174b68cf2b8935248a3e16b78.tar.gz bcm5719-llvm-02f5ce20775cb2a174b68cf2b8935248a3e16b78.zip | |
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++
llvm-svn: 19416
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index a81dbee2406..7a4697ad5bf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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. |

