mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
allow token chain at start or end of node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e01136f9f
commit
2789bde57f
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user