lang: codegen: remove old var declaration generator
This commit is contained in:
@@ -69,14 +69,14 @@ static struct code_generator_result value_received(
|
||||
return CODEGEN_RESULT_ERR(IVY_ERR_BAD_SYNTAX);
|
||||
}
|
||||
|
||||
ret->s_value = value;
|
||||
ret->s_value = value->v_value.mie_value;
|
||||
ret->s_prev_node = IVY_AST_EXPR;
|
||||
|
||||
return CODEGEN_RESULT_OK(CODEGEN_R_POP_GENERATOR);
|
||||
}
|
||||
|
||||
struct code_generator return_generator = {
|
||||
.g_type = CODE_GENERATOR_VAR,
|
||||
.g_type = CODE_GENERATOR_RETURN,
|
||||
.g_state_size = sizeof(struct return_codegen_state),
|
||||
.g_state_init = state_init,
|
||||
.g_state_fini = state_fini,
|
||||
|
||||
Reference in New Issue
Block a user