[Statepoint] Use iterate_range.empty [NFC]
authorPhilip Reames <listmail@philipreames.com>
Thu, 28 May 2020 19:31:49 +0000 (12:31 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 28 May 2020 20:51:59 +0000 (13:51 -0700)
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp

index d826fe7..fd961d1 100644 (file)
@@ -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<const Use>(Inputs.begin(), Inputs.end());
@@ -877,7 +877,7 @@ SelectionDAGBuilder::LowerStatepoint(const GCStatepointInst &I,
     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());