More work on calls and compound statements

This commit is contained in:
Krzosa Karol
2022-05-30 13:22:57 +02:00
parent b2d3e9d8e1
commit 3a97e739a8
7 changed files with 73 additions and 36 deletions

View File

@@ -136,7 +136,7 @@ gen_expr(Ast_Expr *ast){
}
CASE(CALL, Call){
if(node->type == type_type){
if(node->type->kind == TYPE_STRUCT){ // @todo: Should this be type_type maybe???
gen("(");
gen_simple_decl(node->type, {});
gen(")");