]> 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 3a133ac1ef8524840960ac0eef5c6962f5df64de..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,
@@ -525,7 +527,7 @@ struct ast_goto_s
 
 ast_goto* ast_goto_new(lex_ctx ctx, const char *name);
 void ast_goto_delete(ast_goto*);
-void ast_goto_setlabel(ast_goto*, ast_label*);
+void ast_goto_set_label(ast_goto*, ast_label*);
 
 bool ast_goto_codegen(ast_goto*, ast_function*, bool lvalue, ir_value**);