aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 021194b79..3f37992a3 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -6440,8 +6440,9 @@ String ir_mangle_name(irGen *s, Entity *e) {
GB_ASSERT_MSG(pkg != nullptr, "Missing package for '%.*s'", LIT(name));
String pkgn = pkg->name;
GB_ASSERT(!rune_is_digit(pkgn[0]));
-
-
+ if (pkgn == "llvm") {
+ pkgn = str_lit("llvm$");
+ }
isize max_len = pkgn.len + 1 + name.len + 1;
bool require_suffix_id = is_type_polymorphic(e->type, true);