mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
fix get_maybe_type not ensuring complete child type
This commit is contained in:
parent
d0b59f20ab
commit
3752e0c290
@ -364,6 +364,8 @@ TypeTableEntry *get_maybe_type(CodeGen *g, TypeTableEntry *child_type) {
|
||||
TypeTableEntry *entry = child_type->maybe_parent;
|
||||
return entry;
|
||||
} else {
|
||||
ensure_complete_type(g, child_type);
|
||||
|
||||
TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdMaybe);
|
||||
assert(child_type->type_ref);
|
||||
assert(child_type->di_type);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user