From: Philippe Proulx Date: Tue, 28 Jul 2015 19:09:06 +0000 (-0400) Subject: ir: do not cache variant type's alignment X-Git-Tag: v2.0.0-pre1~1197 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=c436d7875012915ab7f18250297561a39fac59d2 ir: do not cache variant type's alignment A variant type's alignment will always be 0 any way, so this caching step is not needed. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index 31cd2524..91104860 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -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);