ir: do not cache variant type's alignment
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 28 Jul 2015 19:09:06 +0000 (15:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 31 Jul 2015 18:32:44 +0000 (14:32 -0400)
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>
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.026809 seconds and 4 git commands to generate.