aboutsummaryrefslogtreecommitdiffstats
path: root/passes/proc/proc_clean.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-20 11:39:23 +0200
committerGitHub <noreply@github.com>2019-08-20 11:39:23 +0200
commitd0117d7d12483abd126602c1220a80e2eb807873 (patch)
tree4bbcb60156a215dd462298904aa8e537465d5355 /passes/proc/proc_clean.cc
parent1e3dd0a2da1c8a6a34d2a664f938a90fc83e81a9 (diff)
parent6ffb910d12a93e64182b52a58e69386851f2d595 (diff)
downloadyosys-d0117d7d12483abd126602c1220a80e2eb807873.tar.gz
yosys-d0117d7d12483abd126602c1220a80e2eb807873.tar.bz2
yosys-d0117d7d12483abd126602c1220a80e2eb807873.zip
Merge branch 'master' into clifford/pmgen
Diffstat (limited to 'passes/proc/proc_clean.cc')
-rw-r--r--passes/proc/proc_clean.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/passes/proc/proc_clean.cc b/passes/proc/proc_clean.cc
index 97f4c6573..114c6ab03 100644
--- a/passes/proc/proc_clean.cc
+++ b/passes/proc/proc_clean.cc
@@ -69,8 +69,7 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
did_something = true;
for (auto &action : sw->cases[0]->actions)
parent->actions.push_back(action);
- for (auto sw2 : sw->cases[0]->switches)
- parent->switches.push_back(sw2);
+ parent->switches.insert(parent->switches.begin(), sw->cases[0]->switches.begin(), sw->cases[0]->switches.end());
sw->cases[0]->switches.clear();
delete sw->cases[0];
sw->cases.clear();