Filter out empty strings while generting function signature

pull/2303/head snapshot-20230713.898
nithinsubbiah 2023-07-12 23:23:43 +00:00 committed by Vivek Khandelwal
parent c23a61f4b6
commit 91c6454618
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ class JitOperator:
def_name = "".join(mlir_op_name.split("."))
def_name += f"{function_kind}"
parameter_decls = list(map(parameter_decl_builder, self.arguments))
parameter_decls = list(filter(None, parameter_decls))
ret_decls = list(map(ret_decl_builder, self.returns))
parameters = ", ".join(parameter_decls)
result = ", ".join(ret_decls)