aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-01 20:36:51 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit4ca3b74621c3608de42a91730a71892d9d7c27b5 (patch)
treeae6ed7a1c37fc7fe32b3f763b839e65fe6becbeb /src/compiler.c
parent0f26e1d204d3a3026ca3edfc4c6bd9638b2632e7 (diff)
Remove nullable... it's bad to have magic. Static analysis can do it instead
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.c b/src/compiler.c
index 524b555..8c3266c 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -34,7 +34,7 @@ static CHECK_RESULT int create_default_type(amal_compiler *compiler, const char
return_if_error(arena_allocator_alloc(&compiler->allocator, sizeof(LhsExpr), (void**)lhs_expr));
lhsexpr_init(*lhs_expr, bool_true, bool_true, bool_true, create_buffer_view(name, strnlen(name, PATH_MAX)));
- return_if_error(ast_create(&compiler->allocator, struct_decl, AST_STRUCT_DECL, &nullable_raw((*lhs_expr)->rhs_expr)));
+ return_if_error(ast_create(&compiler->allocator, struct_decl, AST_STRUCT_DECL, &(*lhs_expr)->rhs_expr));
return_if_error(ast_create(&compiler->allocator, *lhs_expr, AST_LHS, &expr));
expr->resolve_data.type = *lhs_expr;
expr->resolve_data.status = AST_RESOLVED;