ir: do not cache variant type's alignment
[babeltrace.git] / formats / ctf / ir / event-types.c
index 31cd2524d77570cc182dd030752fe00a3ac7feb6..91104860483220924f34880caa195803d26ce2b8 100644 (file)
@@ -2504,8 +2504,6 @@ void bt_ctf_field_type_variant_freeze(struct bt_ctf_field_type *type)
        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);
This page took 0.022399 seconds and 4 git commands to generate.