aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-18 16:57:51 +0000
committerGitHub <noreply@github.com>2020-06-18 16:57:51 +0000
commit8344846787c505ca9bc0c2fe099115033e115490 (patch)
tree7917e7408f78b1d95a0b8f3bd56c41dd4ca40d33
parent5439faebf929f303cb9eb2a17f4aa468ddb9af74 (diff)
parent3c4e974d7b05d69c620ed76b8a23b461bf99eee6 (diff)
downloadyosys-8344846787c505ca9bc0c2fe099115033e115490.tar.gz
yosys-8344846787c505ca9bc0c2fe099115033e115490.tar.bz2
yosys-8344846787c505ca9bc0c2fe099115033e115490.zip
Merge pull request #2167 from whitequark/cxxrtl-fix-ndebug
cxxrtl: don't compute vital values in log_assert()
-rw-r--r--backends/cxxrtl/cxxrtl_backend.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc
index 72190d99a..bd2666a78 100644
--- a/backends/cxxrtl/cxxrtl_backend.cc
+++ b/backends/cxxrtl/cxxrtl_backend.cc
@@ -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) {