Fix foreign export #294

This commit is contained in:
gingerBill
2018-12-08 11:45:08 +00:00
parent 4205f0f0b1
commit 13f084a219
2 changed files with 8 additions and 1 deletions

View File

@@ -9744,6 +9744,7 @@ void ir_gen_tree(irGen *s) {
irValue *p = ir_value_procedure(m, e, e->type, type_expr, body, name);
p->Proc.tags = pl->tags;
p->Proc.inlining = pl->inlining;
p->Proc.is_export = e->Procedure.is_export;
ir_module_add_value(m, e, p);
HashKey hash_name = hash_string(name);