aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-08 11:45:08 +0000
committergingerBill <bill@gingerbill.org>2018-12-08 11:45:08 +0000
commit13f084a219320a39eaa06dc4527f720231cc9710 (patch)
tree936a3aae0eafa8c8ef8f57cf5083b1c24bb401b5 /src/ir.cpp
parent4205f0f0b1d0141d1853d14ff66501935a7bcc6f (diff)
Fix `foreign export` #294
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index ea7719af2..77587516d 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -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);