cxxrtl: don't compute vital values in log_assert().

This breaks NDEBUG builds.

Fixes #2166.
This commit is contained in:
whitequark 2020-06-17 19:27:47 +00:00
parent 334ec5fa0a
commit 3c4e974d7b
1 changed files with 2 additions and 1 deletions

View File

@ -1839,7 +1839,8 @@ struct CxxrtlWorker {
topo_design.edge(cell_module, module);
}
}
log_assert(topo_design.sort());
bool no_loops = topo_design.sort();
log_assert(no_loops);
modules.insert(modules.end(), topo_design.sorted.begin(), topo_design.sorted.end());
if (split_intf) {