diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-15 23:36:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-15 23:36:14 -0500 |
| commit | 3752e0c29040863ac959174e0457b554f9715cab (patch) | |
| tree | 964b20c1a0aeae17236f68ff1aafaafdf3cd472b /src | |
| parent | d0b59f20ab3285b11c5e8a8201991dc5fc90b3c9 (diff) | |
| download | zig-3752e0c29040863ac959174e0457b554f9715cab.tar.gz zig-3752e0c29040863ac959174e0457b554f9715cab.zip | |
fix get_maybe_type not ensuring complete child type
Diffstat (limited to 'src')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index de73ed70f7..8f127ba00d 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -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); |
