Remove useless args from handle_return

This commit is contained in:
Pragyansh Chaturvedi
2025-10-05 23:40:48 +05:30
parent e9f3aa25d2
commit f96a6b94dc
2 changed files with 1 additions and 7 deletions

View File

@ -351,9 +351,7 @@ def handle_if(
builder.position_at_end(merge_block)
def handle_return(
func, module, builder, stmt, map_sym_tab, local_sym_tab, struct_sym_tab, ret_type
):
def handle_return(builder, stmt, local_sym_tab, ret_type):
if stmt.value is None:
builder.ret(ir.Constant(ir.IntType(64), 0))
return True
@ -444,13 +442,9 @@ def process_stmt(
)
elif isinstance(stmt, ast.Return):
did_return = handle_return(
func,
module,
builder,
stmt,
map_sym_tab,
local_sym_tab,
structs_sym_tab,
ret_type,
)
return did_return

View File