mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix static procedure name mangling
This commit is contained in:
+3
-1
@@ -7960,7 +7960,6 @@ void ir_build_stmt_internal(irProcedure *proc, Ast *node) {
|
|||||||
Entity *e = entity_of_ident(ident);
|
Entity *e = entity_of_ident(ident);
|
||||||
GB_ASSERT(e->flags & EntityFlag_Static);
|
GB_ASSERT(e->flags & EntityFlag_Static);
|
||||||
String name = e->token.string;
|
String name = e->token.string;
|
||||||
HashKey key = hash_string(name);
|
|
||||||
|
|
||||||
String mangled_name = {};
|
String mangled_name = {};
|
||||||
{
|
{
|
||||||
@@ -7971,6 +7970,9 @@ void ir_build_stmt_internal(irProcedure *proc, Ast *node) {
|
|||||||
mangled_name.len = gb_string_length(str);
|
mangled_name.len = gb_string_length(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HashKey key = hash_string(mangled_name);
|
||||||
|
ir_add_entity_name(m, e, mangled_name);
|
||||||
|
|
||||||
irValue *g = ir_value_global(e, value);
|
irValue *g = ir_value_global(e, value);
|
||||||
g->Global.name = mangled_name;
|
g->Global.name = mangled_name;
|
||||||
g->Global.is_internal = true;
|
g->Global.is_internal = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user