Skip to content

Commit

Permalink
[Statepoint] Use iterate_range.empty [NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
preames committed May 28, 2020
1 parent 9021ce9 commit 4d6cda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
Expand Up @@ -869,15 +869,15 @@ SelectionDAGBuilder::LowerStatepoint(const GCStatepointInst &I,
SI.ID = I.getID();

if (auto Opt = I.getOperandBundle(LLVMContext::OB_deopt)) {
assert(ISP.deopt_begin() == ISP.deopt_end() &&
assert(ISP.deopt_operands().empty() &&
"can't list both deopt operands and deopt bundle");
auto &Inputs = Opt->Inputs;
SI.DeoptState = ArrayRef<const Use>(Inputs.begin(), Inputs.end());
} else {
SI.DeoptState = ArrayRef<const Use>(ISP.deopt_begin(), ISP.deopt_end());
}
if (auto Opt = I.getOperandBundle(LLVMContext::OB_gc_transition)) {
assert(ISP.gc_transition_args_begin() == ISP.gc_transition_args_end() &&
assert(ISP.gc_transition_args().empty() &&
"can't list both gc_transition operands and bundle");
auto &Inputs = Opt->Inputs;
SI.GCTransitionArgs = ArrayRef<const Use>(Inputs.begin(), Inputs.end());
Expand Down

0 comments on commit 4d6cda9

Please sign in to comment.