mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Ensure unique names for helper procs
This commit is contained in:
parent
4a970f089a
commit
d33c1b54fd
2 changed files with 3 additions and 3 deletions
|
@ -325,7 +325,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
(*existing_symbol, None)
|
||||
} else {
|
||||
let layout_name = layout_debug_name(layout);
|
||||
let debug_name = format!("#help{:?}_{}", op, layout_name);
|
||||
let debug_name = format!("#help{:?}_{}_{}", op, layout_name, self.specs.len());
|
||||
let new_symbol: Symbol = self.create_symbol(ident_ids, &debug_name);
|
||||
self.specs.push((*layout, op, new_symbol));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue