A variant type's alignment will always be 0
any way, so this caching step is not needed.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct bt_ctf_field_type_variant *variant_type = container_of(
type, struct bt_ctf_field_type_variant, parent);
- /* Cache the alignment */
- type->declaration->alignment = bt_ctf_field_type_get_alignment(type);
generic_field_type_freeze(type);
g_ptr_array_foreach(variant_type->fields,
(GFunc) freeze_structure_field, NULL);