cxxrtl: don't crash on empty designs.
authorwhitequark <whitequark@whitequark.org>
Fri, 5 Mar 2021 11:05:19 +0000 (11:05 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 5 Mar 2021 11:05:19 +0000 (11:05 +0000)
backends/cxxrtl/cxxrtl_backend.cc

index 39046bd782f22b520d9ff49b3cee06085b1577ac..a312c1e21dc38e274e4a611a404b0e9104b725cf 100644 (file)
@@ -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();