3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-22 08:35:32 +00:00

Fix coredump when wire is nullptr

This commit is contained in:
Alain Dargelas 2024-10-17 13:43:41 -07:00
parent 71b6dff345
commit a54f450eb9

View file

@ -2516,7 +2516,7 @@ struct AnnotateActivity : public OutputWriter {
},
[this, use_signal, dataMap, max_time, real_timescale, clk_period, debug]
(const char *name, int size, Wire *w, int id, bool is_reg) {
if (!use_signal.at(id))
if (!use_signal.at(id) || (w == nullptr))
return;
std::string full_name = form_vcd_name(name, size, w);
SignalActivityDataMap::const_iterator itr = dataMap.find(id);