Make use of new ArrayRef::consume_* functions. (#5975)

Minor code simplifications.
This commit is contained in:
Richard Smith
2025-08-21 21:41:53 +00:00
committed by GitHub
parent 046fbbcb29
commit 816d4589cd
7 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ static auto IsValidBuiltinDeclaration(Context& context,
// Find the list of call parameters other than the implicit return slot.
auto call_params = context.inst_blocks().Get(function.call_params_id);
if (function.return_slot_pattern_id.has_value()) {
call_params = call_params.drop_back();
call_params.consume_back();
}
// Form the list of parameter types for the declaration.