We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7888c6 + af75dce commit 3a5ce2dCopy full SHA for 3a5ce2d
kernel/register.h
@@ -29,6 +29,7 @@ struct Pass
29
{
30
std::string pass_name, short_help;
31
Pass(std::string name, std::string short_help = "** document me **");
32
+ // Prefer overriding 'Pass::on_shutdown()' if possible
33
virtual ~Pass();
34
35
virtual void help();
passes/cmds/design.cc
@@ -28,7 +28,7 @@ std::vector<RTLIL::Design*> pushed_designs;
28
struct DesignPass : public Pass {
DesignPass() : Pass("design", "save, restore and reset current design") { }
- ~DesignPass() override {
+ void on_shutdown() override {
for (auto &it : saved_designs)
delete it.second;
saved_designs.clear();
0 commit comments