mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Assign node orders to target intrinsics which do not produce results. rdar://11096639
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7f5c6e0e3
commit
5aef7957dd
@ -3586,6 +3586,12 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
|
||||
}
|
||||
|
||||
setValue(&I, Result);
|
||||
} else {
|
||||
// Assign order to result here. If the intrinsic does not produce a result,
|
||||
// it won't be mapped to a SDNode and visit() will not assign it an order
|
||||
// number.
|
||||
++SDNodeOrder;
|
||||
AssignOrderingToNode(Result.getNode());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user