From: Jérémie Astor Date: Sat, 12 Dec 2020 12:51:37 +0000 (+0100) Subject: :art: Remove useless loop X-Git-Tag: nightly~1105^2~33 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7c5738ed6e600681c91daae9481b5294de402b8c;p=gwion.git :art: Remove useless loop --- diff --git a/src/parse/check.c b/src/parse/check.c index 9fa666a4..2d537ab2 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1015,8 +1015,7 @@ ANN m_bool check_union_decl(const Env env, const Union_Def udef) { CHECK_OB(check_exp(env, l->self)) Var_Decl_List list = l->self->d.exp_decl.list; list->self->value->from->offset = ++idx; - do set_vflag(list->self->value, vflag_union); - while((list = list->next)); // disallow multiple values here. + set_vflag(list->self->value, vflag_union); if(l->self->info->type->size > sz) sz = l->self->info->type->size; } while((l = l->next));