From a5458d21ef8166128d43a4497d7400cdf09377f6 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 25 Apr 2025 11:10:16 +0200 Subject: [PATCH] fixup! fixup! fixup! ast: add GC for dev debugging --- frontends/ast/ast.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index fbfa77a18..be0c81078 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -290,8 +290,8 @@ void AstNode::delete_children() for (auto &it : children) if (Tagger::get().nodes.count(it)) delete it; - else - log("skip child %p\n", it); + // else + // log("skip child %p\n", it); #else for (auto &it : children) delete it; @@ -302,8 +302,8 @@ void AstNode::delete_children() for (auto &it : attributes) if (Tagger::get().nodes.count(it.second)) delete it.second; - else - log("skip attr %p\n", it.second); + // else + // log("skip attr %p\n", it.second); #else for (auto &it : attributes) delete it.second;