Skip to content

Commit

Permalink
Workaround for Project-ARTist/meta#23, avoiding arena allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
schrnz committed Jan 19, 2019
1 parent e2fa9c8 commit 60ec2e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ TemplateModule::TemplateModule(const shared_ptr<const art::FilesystemHelper> fs)
HArtist * TemplateModule::createPass(const MethodInfo &method_info) const {
// Due to the *clone bug* (https://github.com/Project-ARTist/ARTist/issues/10), we can only define one pass per
// module right now, but this will change as soon as this bug is resolved.
return new (method_info.GetGraph()->GetArena()) HStethoArtist(method_info);
// return new (method_info.GetGraph()->GetArena()) HStethoArtist(method_info);
return new HStethoArtist(method_info);
}

shared_ptr<const CodeLib> TemplateModule::createCodeLib() const {
Expand Down

0 comments on commit 60ec2e8

Please sign in to comment.