[llvm] 4d6cda9 - [Statepoint] Use iterate_range.empty [NFC]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 13:52:11 PDT 2020


Author: Philip Reames
Date: 2020-05-28T13:51:59-07:00
New Revision: 4d6cda9bdaca01f581ef23904f54443ef5c2acac

URL: https://github.com/llvm/llvm-project/commit/4d6cda9bdaca01f581ef23904f54443ef5c2acac
DIFF: https://github.com/llvm/llvm-project/commit/4d6cda9bdaca01f581ef23904f54443ef5c2acac.diff

LOG: [Statepoint] Use iterate_range.empty [NFC]

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
index d826fe7b0936..fd961d1908a4 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<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());


        


More information about the llvm-commits mailing list