[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat May 14 01:35:12 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.129 -> 1.130
---
Log message:
allow token chain at start or end of node
---
Diffs of the changes: (+2 -0)
LegalizeDAG.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.129 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.130
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.129 Sat May 14 02:45:46 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sat May 14 03:34:53 2005
@@ -2044,6 +2044,8 @@
return FindCallSeqEnd(*Node->use_begin());
SDOperand TheChain(Node, Node->getNumValues()-1);
+ if (TheChain.getValueType() != MVT::Other)
+ TheChain = SDOperand(Node, 0);
assert(TheChain.getValueType() == MVT::Other && "Is not a token chain!");
for (SDNode::use_iterator UI = Node->use_begin(),
More information about the llvm-commits
mailing list