projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e01136
)
allow token chain at start or end of node
author
Chris Lattner
<sabre@nondot.org>
Sat, 14 May 2005 08:34:53 +0000
(08:34 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 14 May 2005 08:34:53 +0000
(08:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22020
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index e611557716d4384c6752c9e1d29e89c2484ff0ee..f1fd69eca857c88d6f9ada0af0dd9e3bdd87299a 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-2044,6
+2044,8
@@
static SDNode *FindCallSeqEnd(SDNode *Node) {
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(),