small bugfix when assigning to memory reservations
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 15 Aug 2020 16:22:12 +0000 (11:22 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 15 Aug 2020 16:22:12 +0000 (11:22 -0500)
include/onyxastnodes.h
onyx

index c9b0e1460849e49379df381603413b53775e20c8..fa2af347530359b33d4d4dc008f818708e48a21f 100644 (file)
@@ -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 f1d476549b90b66dc98bc159ec2176d5dca3b03f..04429e9d275ab6e5d6c0997f105dcac3ebb6ffc3 100755 (executable)
Binary files a/onyx and b/onyx differ