From 7c5738ed6e600681c91daae9481b5294de402b8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 12 Dec 2020 13:51:37 +0100 Subject: [PATCH] :art: Remove useless loop --- src/parse/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); -- 2.43.0