1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[Statepoint] Use iterate_range.empty [NFC]

This commit is contained in:
Philip Reames 2020-05-28 12:31:49 -07:00
parent 507fec3651
commit 321a5cfc7a

View 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());