mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
correctly add padding between data and tag id
This commit is contained in:
parent
fb4a56e916
commit
c0f49ce62c
3 changed files with 167 additions and 13 deletions
|
@ -326,6 +326,10 @@ impl<'ctx> RocUnion<'ctx> {
|
|||
Self::new(context, target_info, data_align, data_width, None)
|
||||
}
|
||||
|
||||
pub fn data_width(&self) -> u32 {
|
||||
self.data_width
|
||||
}
|
||||
|
||||
pub fn tag_alignment(&self) -> u32 {
|
||||
let tag_id_alignment = match self.tag_type {
|
||||
None => 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue