projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635b2b8
)
design: do not delete when iterating over Design::modules() directly
author
Eddie Hung
<eddie@fpgeh.com>
Tue, 14 Apr 2020 17:43:05 +0000
(10:43 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Tue, 14 Apr 2020 17:43:05 +0000
(10:43 -0700)
passes/cmds/design.cc
patch
|
blob
|
history
diff --git
a/passes/cmds/design.cc
b/passes/cmds/design.cc
index 4612760cc9d3528e02365447e4d7d7576caf5722..8861182aa7a503700712e71ddceda4d6103454e4 100644
(file)
--- a/
passes/cmds/design.cc
+++ b/
passes/cmds/design.cc
@@
-340,7
+340,7
@@
struct DesignPass : public Pass {
if (reset_mode || !load_name.empty() || push_mode || pop_mode)
{
- for (auto mod : design->modules())
+ for (auto mod : design->modules()
.to_vector()
)
design->remove(mod);
design->selection_stack.clear();