From d67ac67abb7bec0f784b4292a873545974826289 Mon Sep 17 00:00:00 2001 From: Oliver Schranz Date: Sat, 19 Jan 2019 13:30:28 +0100 Subject: [PATCH] Workaround for Project-ARTist/meta#23, avoiding arena allocation --- src/module.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/module.cc b/src/module.cc index 56bc29d..2433034 100644 --- a/src/module.cc +++ b/src/module.cc @@ -38,7 +38,11 @@ TemplateModule::TemplateModule(const shared_ptr 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()) HTemplateInjectionArtist(method_info); + return new HTemplateInjectionArtist(method_info); +// return new HTemplateBasicArtist(method_info); + +// no arena allocation for now, see Project-ARTist/meta#23 +// return new (method_info.GetGraph()->GetArena()) HTemplateInjectionArtist(method_info); // return new (method_info.GetGraph()->GetArena()) HTemplateBasicArtist(method_info); }