Determine host-exposed lambda sets once based on proc variable

Rather than calculating the HELS for each host-exposed layout (of which
there may be multiple), we only need to calculate the HELS based on the
top-level type of the host-exposed function.

Also renamed `GlueProcs.extern_names` to
`GlueProcs.legacy_layout_based_extern_names` since they are still
currently generated based on the layout, but I think we want to generate
all HELS via type variable.

Fixes false-interpreter builds in debug.
This commit is contained in:
Ayaz Hafiz 2023-05-03 10:00:50 -05:00
parent 4824de5192
commit 0744ef946b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 24 additions and 18 deletions

View file

@ -3437,7 +3437,7 @@ fn finish_specialization<'a>(
);
let lambda_set_names = all_glue_procs
.extern_names
.legacy_layout_based_extern_names
.iter()
.map(|(lambda_set_id, _)| (*_name, *lambda_set_id));
exposed_to_host.lambda_sets.extend(lambda_set_names);