mirror of https://github.com/YosysHQ/yosys.git
cxxrtl: don't crash on empty designs.
This commit is contained in:
parent
7d2097b005
commit
a9a873a1d2
|
@ -2763,7 +2763,7 @@ struct CxxrtlWorker {
|
|||
// Recheck the design if it was modified.
|
||||
if (did_anything)
|
||||
check_design(design, has_top, has_sync_init, has_packed_mem);
|
||||
log_assert(has_top && !has_sync_init && !has_packed_mem);
|
||||
log_assert(!has_sync_init && !has_packed_mem);
|
||||
log_pop();
|
||||
if (did_anything)
|
||||
log_spacer();
|
||||
|
|
Loading…
Reference in New Issue