aboutsummaryrefslogtreecommitdiffstats
path: root/passes/proc/proc_clean.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-20 12:00:12 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-20 12:00:12 -0700
commitc4d4c6db3f4bff22b2fa3a152c5c33d648af81f8 (patch)
treeb465265f1bc72f0b943fc6e4be7f4661e4e5734d /passes/proc/proc_clean.cc
parent1f03154a0cc08c1bde59036d6b0a4a40a3898c3d (diff)
parent14c03861b6d178c85d6963e673ed51bc142457e1 (diff)
downloadyosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.tar.gz
yosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.tar.bz2
yosys-c4d4c6db3f4bff22b2fa3a152c5c33d648af81f8.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
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();