mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Add FunctionPointer layout
This commit is contained in:
parent
a9e3f967a8
commit
6312d75ee0
18 changed files with 111 additions and 14 deletions
|
@ -4527,5 +4527,6 @@ macro_rules! pointer_layouts {
|
|||
| UnionLayout::NullableWrapped { .. }
|
||||
| UnionLayout::NullableUnwrapped { .. },
|
||||
)
|
||||
| LayoutRepr::FunctionPointer(_)
|
||||
};
|
||||
}
|
||||
|
|
|
@ -830,7 +830,14 @@ impl<
|
|||
|
||||
self.copy_to_stack_offset(buf, size, from_offset, to_offset)
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
pointer_layouts!() => {
|
||||
=======
|
||||
LayoutRepr::RecursivePointer(_)
|
||||
| LayoutRepr::Boxed(_)
|
||||
| LayoutRepr::Union(_)
|
||||
| LayoutRepr::FunctionPointer(_) => {
|
||||
>>>>>>> 1e4ebab07 (Add FunctionPointer layout)
|
||||
// like a 64-bit integer
|
||||
debug_assert_eq!(to_offset % 8, 0);
|
||||
let reg = self.load_to_general_reg(buf, sym);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue