Fix t/f/return.py, tweak handle_binary_ops

This commit is contained in:
Pragyansh Chaturvedi
2025-10-03 17:56:21 +05:30
parent b35134625b
commit 6fea580693
5 changed files with 29 additions and 13 deletions

View File

@ -63,4 +63,6 @@ def handle_binary_op_impl(rval, module, builder, local_sym_tab):
def handle_binary_op(rval, module, builder, var_name, local_sym_tab):
result = handle_binary_op_impl(rval, module, builder, local_sym_tab)
builder.store(result, local_sym_tab[var_name].var)
if var_name in local_sym_tab:
builder.store(result, local_sym_tab[var_name].var)
return result, result.type