Add FunctionPointer layout

This commit is contained in:
Ayaz Hafiz 2023-06-25 15:35:03 -05:00
parent a9e3f967a8
commit 6312d75ee0
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
18 changed files with 111 additions and 14 deletions

View file

@ -4527,5 +4527,6 @@ macro_rules! pointer_layouts {
| UnionLayout::NullableWrapped { .. }
| UnionLayout::NullableUnwrapped { .. },
)
| LayoutRepr::FunctionPointer(_)
};
}

View file

@ -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);