mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 20:48:12 +00:00
Make use of new ArrayRef::consume_* functions. (#5975)
Minor code simplifications.
This commit is contained in:
1 parent
046fbbcb29
commit
816d4589cd
7 files changed
+9
-14
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user