Codegen basic arrays with size attached

This commit is contained in:
Krzosa Karol
2022-06-07 17:38:15 +02:00
parent ec89defb5d
commit 9cdc5ee6c9
7 changed files with 118 additions and 42 deletions

View File

@@ -409,7 +409,7 @@ function Ast_Array *
ast_array(Token *pos, Ast_Expr *expr){
AST_NEW(Array, ARRAY, pos, AST_EXPR);
result->expr = expr;
result->expr->parent = result;
if(result->expr) result->expr->parent = result;
return result;
}