diff --git a/src/relay/backend/contrib/codegen_c/codegen.cc b/src/relay/backend/contrib/codegen_c/codegen.cc index 4a4a60a33509..cdaf813c44e4 100644 --- a/src/relay/backend/contrib/codegen_c/codegen.cc +++ b/src/relay/backend/contrib/codegen_c/codegen.cc @@ -147,7 +147,7 @@ class CSourceCodegen : public CSourceModuleCodegenBase { // Record the external symbol for runtime lookup. auto sid = GetExtSymbol(func); - auto builder = CodegenC(sid); + CodegenC builder(sid); builder.VisitExpr(func->body); code_stream_ << builder.JIT(); } diff --git a/src/relay/backend/contrib/dnnl/codegen.cc b/src/relay/backend/contrib/dnnl/codegen.cc index 5c68d5a1711e..e7f7bd6ff559 100644 --- a/src/relay/backend/contrib/dnnl/codegen.cc +++ b/src/relay/backend/contrib/dnnl/codegen.cc @@ -238,7 +238,7 @@ class DNNLModuleCodegen : public CSourceModuleCodegenBase { // Record the external symbol for runtime lookup. auto sid = GetExtSymbol(func); - auto builder = CodegenDNNL(sid); + CodegenDNNL builder(sid); builder.VisitExpr(func->body); code_stream_ << builder.JIT(); }