Remove index fields from ParamPatterns (#6815)

This is a step toward removing the index from `InitForm`, so that equal
form values always have equal representations.

---------

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
Geoff RomerandJon Ross-Perkins authored and GitHub committed 2026-03-03 00:19:47 +00:00
1 parent 9ff6b0a682
commit 6dba8ee111
298 files changed
+1741 -1747

No files matched your search

+1 -2
View File
@@ -1331,8 +1331,7 @@ static auto GetReturnInfo(Context& context, SemIR::LocId loc_id,
MakeImportedLocIdAndInst(
context, return_type_import_ir_inst_id,
SemIR::OutParamPattern({.type_id = pattern_type_id,
.subpattern_id = return_slot_pattern_id,
.index = init_form->index})));
.subpattern_id = return_slot_pattern_id})));
return_patterns_id = context.inst_blocks().Add({param_pattern_id});
}
return {.return_type_inst_id = type_inst_id,