diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-10-26 18:02:15 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-10-26 18:02:15 +0200 |
commit | c238f45ecfd4fa3d556ea885a53d8e864e3c7566 (patch) | |
tree | d89bdd0b9f52058d4f45675ec798a975674819f9 | |
parent | 1e502ef5a005525840629e99c5a3f9cf938da52b (diff) | |
download | yosys-c238f45ecfd4fa3d556ea885a53d8e864e3c7566.tar.gz yosys-c238f45ecfd4fa3d556ea885a53d8e864e3c7566.tar.bz2 yosys-c238f45ecfd4fa3d556ea885a53d8e864e3c7566.zip |
Fix memory corruption bug in opt_rmdff
-rw-r--r-- | passes/opt/opt_rmdff.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |