mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Get rid of passing target_info a bunch
This commit is contained in:
parent
8495f3b085
commit
bc41db2a34
18 changed files with 154 additions and 287 deletions
|
@ -710,7 +710,7 @@ fn eq_list<'a>(
|
|||
let size_expr = Expr::Literal(Literal::Int(
|
||||
(layout_interner
|
||||
.get_repr(elem_layout)
|
||||
.stack_size(layout_interner, root.target_info) as i128)
|
||||
.stack_size(layout_interner) as i128)
|
||||
.to_ne_bytes(),
|
||||
));
|
||||
let size_stmt = |next| Stmt::Let(size, size_expr, layout_isize, next);
|
||||
|
|
|
@ -1687,8 +1687,7 @@ fn refcount_union_rec<'a>(
|
|||
};
|
||||
|
||||
let rc_structure_stmt = {
|
||||
let alignment = LayoutRepr::Union(union_layout)
|
||||
.allocation_alignment_bytes(layout_interner, root.target_info);
|
||||
let alignment = LayoutRepr::Union(union_layout).allocation_alignment_bytes(layout_interner);
|
||||
let ret_stmt = rc_return_stmt(root, ident_ids, ctx);
|
||||
|
||||
modify_refcount(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue