Fix regression, constant variables now get properly rewritten
This commit is contained in:
@@ -147,7 +147,7 @@ gen_expr(Ast_Expr *ast){
|
||||
|
||||
CASE(CALL, Call){
|
||||
// @todo: Reach into map instead of direct lookup
|
||||
if(node->type->kind == TYPE_STRUCT){ // @todo: Should this be type_type maybe???
|
||||
if(is_struct(node->type) || is_array(node->type)){ // @todo: Should this be type_type maybe???
|
||||
gen("(");
|
||||
gen_simple_decl(node->type, {});
|
||||
gen(")");
|
||||
|
||||
Reference in New Issue
Block a user