]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
operator &~= must not cause the generated binstore to free the destination twice
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 29c3192df4acd1c1ecfbbeb18870481c0d36e66c..f1ca3c8d7d6c33c48e9de6ce2a11ad10c83a4f5b 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -234,6 +234,8 @@ struct ast_binstore_s
     int             opbin;
     ast_expression *dest;
     ast_expression *source;
+    /* for &~= which uses the destination in a binary in source we can use this */
+    bool            keep_dest;
 };
 ast_binstore* ast_binstore_new(lex_ctx    ctx,
                                int        storeop,