aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-04-15 21:58:16 +0100
committergingerBill <bill@gingerbill.org>2020-04-15 21:58:16 +0100
commit602a651613cc144ed4690924aee4bf8cc1602efc (patch)
tree6d44b0b15355552d84db528c2c26932ec9a2fedb /src/ir.cpp
parent1e321cd48c379069b0e7304a1cf249644c958c32 (diff)
Fix name mangling for `@(private)` entities
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index a5d532b97..40b52d65f 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -6212,6 +6212,9 @@ String ir_mangle_name(irGen *s, Entity *e) {
isize max_len = pkgn.len + 1 + name.len + 1;
bool require_suffix_id = is_type_polymorphic(e->type, true);
+ if (e->flags & EntityFlag_NotExported) {
+ require_suffix_id = true;
+ }
if (require_suffix_id) {
max_len += 21;
}