diff --git a/src/zscript/zcc-parse.lemon b/src/zscript/zcc-parse.lemon index ae31a1e09..8a8620a42 100644 --- a/src/zscript/zcc-parse.lemon +++ b/src/zscript/zcc-parse.lemon @@ -280,7 +280,6 @@ enum_def(X) ::= ENUM(T) IDENTIFIER(A) enum_type(B) LBRACE opt_enum_list(C) RBRAC if (C != NULL) { ZCC_ConstantDef *node = C, *prev = node; - ZCC_ExprConstant *one = NULL; if (node->Value == NULL) { @@ -308,11 +307,7 @@ enum_def(X) ::= ENUM(T) IDENTIFIER(A) enum_type(B) LBRACE opt_enum_list(C) RBRAC // Otherwise, create a new addition expression to add 1. else { - if (one == NULL) - { // Use a single 1 node for the right-hand side of the addition. - NEW_INTCONST_NODE(cval, TypeSInt32, 1, T); - one = cval; - } + NEW_INTCONST_NODE(one, TypeSInt32, 1, T); NEW_AST_NODE(ExprID, label, node); label->Operation = PEX_ID; label->Identifier = prev->Name;