Merge pull request #2167 from whitequark/cxxrtl-fix-ndebug

cxxrtl: don't compute vital values in log_assert()
This commit is contained in:
whitequark 2020-06-18 16:57:51 +00:00 committed by GitHub
commit 8344846787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1845,7 +1845,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) {