3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-10 09:15:49 +00:00

fixup! fixup! fixup! ast: add GC for dev debugging

This commit is contained in:
Emil J. Tywoniak 2025-04-25 11:10:16 +02:00
parent 6d8cb33512
commit a5458d21ef

View file

@ -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;