LayoutIds use LayoutRepr

This commit is contained in:
Ayaz Hafiz 2023-06-16 22:00:02 -05:00
parent 94e97df54a
commit ee25735731
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 21 additions and 26 deletions

View file

@ -374,7 +374,7 @@ fn build_rc_wrapper<'a, 'ctx>(
let symbol = Symbol::GENERIC_RC_REF;
let fn_name = layout_ids
.get(symbol, &layout)
.get(symbol, &layout_interner.get_repr(layout))
.to_symbol_string(symbol, &env.interns);
let fn_name = match rc_operation {
@ -477,7 +477,7 @@ pub fn build_eq_wrapper<'a, 'ctx>(
let symbol = Symbol::GENERIC_EQ_REF;
let fn_name = layout_ids
.get(symbol, &layout)
.get(symbol, &layout_interner.get_repr(layout))
.to_symbol_string(symbol, &env.interns);
let function_value = match env.module.get_function(fn_name.as_str()) {