mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
LayoutIds use LayoutRepr
This commit is contained in:
parent
94e97df54a
commit
ee25735731
5 changed files with 21 additions and 26 deletions
|
|
@ -483,7 +483,7 @@ fn build_clone_tag<'a, 'ctx>(
|
|||
union_layout: UnionLayout<'a>,
|
||||
) -> IntValue<'ctx> {
|
||||
let layout = layout_interner.insert_direct_no_semantic(LayoutRepr::Union(union_layout));
|
||||
let layout_id = layout_ids.get(Symbol::CLONE, &layout);
|
||||
let layout_id = layout_ids.get(Symbol::CLONE, &layout_interner.get_repr(layout));
|
||||
let fn_name = layout_id.to_symbol_string(Symbol::CLONE, &env.interns);
|
||||
|
||||
let function = match env.module.get_function(fn_name.as_str()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue