mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Fix unique names
This commit is contained in:
parent
da4cf721cc
commit
d08b79295c
1 changed files with 5 additions and 4 deletions
|
@ -293,15 +293,16 @@ impl<'a> CodeGenHelp<'a> {
|
|||
return spec.proc.name;
|
||||
}
|
||||
|
||||
let (proc_symbol, proc_layout) = self.create_proc_symbol(ident_ids, ctx, &layout);
|
||||
ctx.new_linker_data.push((proc_symbol, proc_layout));
|
||||
|
||||
// Generate the body of the Proc
|
||||
// Generate the body of the Proc (and recursively generate any sub-procs)
|
||||
let (ret_layout, body) = match ctx.op {
|
||||
Inc | Dec | DecRef => (LAYOUT_UNIT, self.refcount_generic(ident_ids, ctx, layout)),
|
||||
Eq => (LAYOUT_BOOL, self.eq_generic(ident_ids, ctx, layout)),
|
||||
};
|
||||
|
||||
// Give it a name (must come after the recursive call for the body)
|
||||
let (proc_symbol, proc_layout) = self.create_proc_symbol(ident_ids, ctx, &layout);
|
||||
ctx.new_linker_data.push((proc_symbol, proc_layout));
|
||||
|
||||
let args: &'a [(Layout<'a>, Symbol)] = {
|
||||
let roc_value = (layout, ARG_1);
|
||||
match ctx.op {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue