aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index a7076a3243..c2da83886a 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -16241,7 +16241,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t
result->special = ConstValSpecialStatic;
result->type = ir_type_info_get_type(ira, "Fn");
- ConstExprValue *fields = create_const_vals(5);
+ ConstExprValue *fields = create_const_vals(6);
result->data.x_struct.fields = fields;
// @TODO Fix type = undefined with ?type
@@ -16327,6 +16327,15 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t
break;
}
+ case TypeTableEntryIdBoundFn:
+ {
+ // @TODO figure out memory corruption error.
+ TypeTableEntry *fn_type = type_entry->data.bound_fn.fn_type;
+ assert(fn_type->id == TypeTableEntryIdFn);
+ result = ir_make_type_info_value(ira, fn_type);
+
+ break;
+ }
}
assert(result != nullptr);