mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Assign node orders to target intrinsics which do not produce results. rdar://11096639
llvm-svn: 153269
This commit is contained in:
parent
df222b2e87
commit
50b6f1a793
@ -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