aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-22 00:05:11 +0100
committergingerBill <bill@gingerbill.org>2022-09-22 00:05:11 +0100
commit8c3f01fbfa73f707e9150b0dbe2629d7d5ac2f8d (patch)
treec0d3308f49ae14abf970c7a5a127498a8b0bf29c /src/check_type.cpp
parent0380601bb489d6488bbc0a3322a06889dca9bd02 (diff)
Correct parapoly determination of generated internal type of a `map`
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index c024e0842..2ffe04342 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2211,7 +2211,6 @@ void init_map_internal_types(Type *type) {
GB_ASSERT(type->kind == Type_Map);
init_map_entry_type(type);
if (type->Map.internal_type != nullptr) return;
- if (type->Map.generated_struct_type != nullptr) return;
Type *key = type->Map.key;
Type *value = type->Map.value;
@@ -2239,7 +2238,6 @@ void init_map_internal_types(Type *type) {
generated_struct_type->Struct.fields = fields;
type_set_offsets(generated_struct_type);
- type->Map.generated_struct_type = generated_struct_type;
type->Map.internal_type = generated_struct_type;
type->Map.lookup_result_type = make_optional_ok_type(value);
}