From 1ee4fc9d27292a1508029c188814ddc043741e44 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Wed, 12 Nov 2025 20:20:51 +0100 Subject: [PATCH] fix YOSYS_XTRACE_GET_PUT --- kernel/rtlil.cc | 2 +- kernel/rtlil.h | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index bc89fc6a4..d18a709c9 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -130,7 +130,7 @@ int RTLIL::IdString::really_insert(std::string_view p, std::unordered_map(size)}; } }; - #undef YOSYS_XTRACE_GET_PUT - #undef YOSYS_SORT_ID_FREE_LIST - #undef YOSYS_NO_IDS_REFCNT - // the global id string cache static bool destruct_guard_ok; // POD, will be initialized to zero @@ -178,7 +174,7 @@ struct RTLIL::IdString if (global_id_storage_.at(idx).buf == nullptr) log("#X# DB-DUMP index %d: FREE\n", idx); else - log("#X# DB-DUMP index %d: '%s' (ref %u)\n", idx, refcount(idx).buf, refcount); + log("#X# DB-DUMP index %d: '%s' (ref %u)\n", idx, global_id_storage_.at(idx).buf, refcount(idx)); } #endif }