Skip to content

Commit

Permalink
Merge pull request #841 from rdaly525/fix-double-free
Browse files Browse the repository at this point in the history
Remove static variable
  • Loading branch information
rdaly525 authored Feb 12, 2020
2 parents dbc2954 + f79bead commit 64bbc44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ namespace Passes {
class RenameYosysAutoGeneratedInstances : public ModulePass {

public:
static std::string ID;
RenameYosysAutoGeneratedInstances() : ModulePass(ID, "Give simpler names to instances that have been automatically generated by yosys") {}
RenameYosysAutoGeneratedInstances() : ModulePass(
"rename_yosys_auto_generated_instances",
"Give simpler names to instances that have been automatically generated by yosys"
) {}
bool runOnModule(Module* m) override;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ using namespace std;
using namespace CoreIR;


//Do not forget to set this static variable!!
string Passes::RenameYosysAutoGeneratedInstances::ID = "rename_yosys_auto_generated_instances";
bool Passes::RenameYosysAutoGeneratedInstances::runOnModule(Module* m) {
if (!m->hasDef()) {
return false;
Expand Down

0 comments on commit 64bbc44

Please sign in to comment.