aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2018-05-01 17:10:50 +0300
committerAlexandros Naskos <alex_naskos@hotmail.com>2018-05-01 17:10:50 +0300
commit849ea61fa11460b1a6df2529063a6b0cabc6e5e4 (patch)
tree5ddd82a016bc06baf332c640b533ebae46ac31b1 /src/ir.cpp
parent57940837e7a178577c22b89c5173082e4fb8e618 (diff)
downloadzig-849ea61fa11460b1a6df2529063a6b0cabc6e5e4.tar.gz
zig-849ea61fa11460b1a6df2529063a6b0cabc6e5e4.zip
Small fix.
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index ff81ebfd86..cffee9bebc 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -15765,6 +15765,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
type_info_var = get_builtin_value(ira->codegen, "TypeInfo");
assert(type_info_var->type->id == TypeTableEntryIdMetaType);
+ ensure_complete_type(ira->codegen, type_info_var->data.x_type);
type_info_type = type_info_var->data.x_type;
assert(type_info_type->id == TypeTableEntryIdUnion);
}
@@ -15790,6 +15791,7 @@ static TypeTableEntry *ir_type_info_get_type(IrAnalyze *ira, const char *type_na
VariableTableEntry *var = tld->var;
+ ensure_complete_type(ira->codegen, var->value->type);
assert(var->value->type->id == TypeTableEntryIdMetaType);
return var->value->data.x_type;
}