From: Brendan Hansen Date: Sat, 15 Aug 2020 16:22:12 +0000 (-0500) Subject: small bugfix when assigning to memory reservations X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=2ef91651b2fa372f6a32d1231e2cefab3a5e124b;p=onyx.git small bugfix when assigning to memory reservations --- diff --git a/include/onyxastnodes.h b/include/onyxastnodes.h index c9b0e146..fa2af347 100644 --- a/include/onyxastnodes.h +++ b/include/onyxastnodes.h @@ -507,7 +507,8 @@ static inline b32 is_lval(AstNode* node) { || (node->kind == Ast_Kind_Global) || (node->kind == Ast_Kind_Dereference) || (node->kind == Ast_Kind_Array_Access) - || (node->kind == Ast_Kind_Field_Access); + || (node->kind == Ast_Kind_Field_Access) + || (node->kind == Ast_Kind_Memres); } static inline b32 binop_is_assignment(AstBinaryOp* binop) { diff --git a/onyx b/onyx index f1d47654..04429e9d 100755 Binary files a/onyx and b/onyx differ