aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.c b/src/compiler.c
index 5845283..76b420a 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -168,16 +168,19 @@ int compile(const char *input, const char *output) {
struct scope *root = NULL;
if (process_file(&root, 0, input)) {
destroy_scope(root);
+ destroy_ast_nodes();
error("compilation of %s stopped due to errors", input);
return ret;
}
+ /*
if ((ret = actualize_main(root))) {
destroy_scope(root);
destroy_ast_nodes();
error("compilation of %s stopped due to errors", input);
return ret;
}
+ */
if ((ret = lower_ops(root, output))) {
destroy_scope(root);