From: Clifford Wolf Date: Thu, 26 Oct 2017 16:02:15 +0000 (+0200) Subject: Fix memory corruption bug in opt_rmdff X-Git-Tag: yosys-0.8~278 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c238f45ecfd4fa3d556ea885a53d8e864e3c7566;p=yosys.git Fix memory corruption bug in opt_rmdff --- diff --git a/passes/opt/opt_rmdff.cc b/passes/opt/opt_rmdff.cc index 02f3e93f5..edec42c4d 100644 --- a/passes/opt/opt_rmdff.cc +++ b/passes/opt/opt_rmdff.cc @@ -430,6 +430,8 @@ struct OptRmdffPass : public Pass { assign_map.set(module); dff_init_map.set(module); + mux_drivers.clear(); + init_attributes.clear(); for (auto wire : module->wires()) { @@ -534,6 +536,7 @@ struct OptRmdffPass : public Pass { assign_map.clear(); mux_drivers.clear(); + init_attributes.clear(); if (total_count || total_initdrv) design->scratchpad_set_bool("opt.did_something", true);