From: Philip Reames Date: Thu, 28 May 2020 19:31:49 +0000 (-0700) Subject: [Statepoint] Use iterate_range.empty [NFC] X-Git-Tag: llvmorg-12-init~4813 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d6cda9bdaca01f581ef23904f54443ef5c2acac;p=platform%2Fupstream%2Fllvm.git [Statepoint] Use iterate_range.empty [NFC] --- diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index d826fe7..fd961d1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -869,7 +869,7 @@ 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(Inputs.begin(), Inputs.end()); @@ -877,7 +877,7 @@ SelectionDAGBuilder::LowerStatepoint(const GCStatepointInst &I, SI.DeoptState = ArrayRef(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(Inputs.begin(), Inputs.end());