forked from OSchip/llvm-project
[Statepoint] Fix StatepointLoweringInfo::GCTransitionArgs initialization
Summary: In method SelectionDAGBuilder::LowerStatepoint, array SI.GCTransitionArgs is initialized from wrong part of ImmutableStatepoint class. We copy gc args instead of transitions args. Reviewers: reames, skatkov Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77075
This commit is contained in:
parent
c9d5c19597
commit
47107dc3bd
|
@ -848,8 +848,8 @@ SelectionDAGBuilder::LowerStatepoint(ImmutableStatepoint ISP,
|
|||
|
||||
SI.GCArgs = ArrayRef<const Use>(ISP.gc_args_begin(), ISP.gc_args_end());
|
||||
SI.StatepointInstr = ISP.getInstruction();
|
||||
SI.GCTransitionArgs =
|
||||
ArrayRef<const Use>(ISP.gc_args_begin(), ISP.gc_args_end());
|
||||
SI.GCTransitionArgs = ArrayRef<const Use>(ISP.gc_transition_args_begin(),
|
||||
ISP.gc_transition_args_end());
|
||||
SI.ID = ISP.getID();
|
||||
SI.DeoptState = ArrayRef<const Use>(ISP.deopt_begin(), ISP.deopt_end());
|
||||
SI.StatepointFlags = ISP.getFlags();
|
||||
|
|
Loading…
Reference in New Issue