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

fixup! ast: add GC for dev debugging

This commit is contained in:
Emil J. Tywoniak 2025-04-25 11:00:19 +02:00
parent d8cae1d904
commit 0d8ea6f8c3
2 changed files with 2 additions and 3 deletions

View file

@ -467,7 +467,7 @@ namespace AST_INTERNAL
AST::AstNode *original_ast = nullptr);
}
#undef ASTNODE_GC
#define ASTNODE_GC
#ifdef ASTNODE_GC
struct Tagger {
std::set<AST::AstNode*> nodes;
@ -524,7 +524,6 @@ struct Tagger {
while (!copy.empty()) {
AST::AstNode* p = *(copy.begin());
copy.erase(p);
fflush(stdout);
if (!tagged.count(p)) {
shadow_kill(p);
}