From 4d6cda9bdaca01f581ef23904f54443ef5c2acac Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 28 May 2020 12:31:49 -0700 Subject: [PATCH] [Statepoint] Use iterate_range.empty [NFC] --- llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.7.4