From: whitequark Date: Fri, 5 Mar 2021 11:05:19 +0000 (+0000) Subject: cxxrtl: don't crash on empty designs. X-Git-Tag: working-ls180~16^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9a873a1d26c27aea8f584fc0a85a6585926c7da;p=yosys.git cxxrtl: don't crash on empty designs. --- diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index 39046bd78..a312c1e21 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -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();