Skip to content

Commit eacb782

Browse files
ggindinsonspookylukey
authored andcommitted
Fixed bug in compiler.py related to variable reuse
1 parent dee90b7 commit eacb782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fluent_compiler/compiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ def compile_expr_variable_reference(argument, block, compiler_env):
904904

905905
if block.scope.has_assignment(arg_tmp_name): # already assigned to this, can re-use
906906
if not wrap_with_handle_argument:
907-
return block.variable(arg_tmp_name)
907+
return block.scope.variable(arg_tmp_name)
908908

909909
block.add_assignment(arg_handled_tmp_name, handle_argument_func_call)
910910
return block.scope.variable(arg_handled_tmp_name)

0 commit comments

Comments
 (0)