mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Use LayoutRepr directly when possible
This commit is contained in:
parent
7b2d149deb
commit
6714a6fd92
3 changed files with 9 additions and 22 deletions
|
@ -404,12 +404,8 @@ impl<'a> LowLevelCall<'a> {
|
|||
if l2.repr == backend.layout_interner.get(list_elem).repr =>
|
||||
{
|
||||
let list_offset = 0;
|
||||
// TODO(deref-layout)
|
||||
let elem_offset = Layout {
|
||||
repr: LayoutRepr::Builtin(Builtin::List(list_elem)),
|
||||
semantic: SemanticRepr::None,
|
||||
}
|
||||
.stack_size(backend.layout_interner, TARGET_INFO);
|
||||
let elem_offset = LayoutRepr::Builtin(Builtin::List(list_elem))
|
||||
.stack_size(backend.layout_interner, TARGET_INFO);
|
||||
(list_offset, elem_offset, f2)
|
||||
}
|
||||
(_, LayoutRepr::Builtin(Builtin::List(list_elem)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue