Skip to content

Commit c7109ca

Browse files
author
Giuseppe Rossini
committed
addressing comments
Change-Id: I83ba0189f559d310b5a80fe0bcc4d601b490d21a
1 parent 6b11cd2 commit c7109ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/source/codegen_c_host.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ runtime::Module BuildCHost(IRModule mod, Target target) {
409409
cg.LinkParameters(linked_params);
410410
}
411411

412-
if (aot_executor_fn.defined()) {
412+
if (could_have_linked_params && aot_executor_fn.defined()) {
413413
cg.DeclareParameters(linked_params);
414414
cg.AddFunction(aot_executor_fn);
415415
}

0 commit comments

Comments
 (0)