[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 9 11:08:10 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.16 -> 1.17
---
Log message:
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++
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.16 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.17
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.16 Sun Jan 9 13:03:49 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sun Jan 9 13:07:54 2005
@@ -315,6 +315,8 @@
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.
More information about the llvm-commits
mailing list