1.1 --- a/translator.py Wed Aug 30 00:55:30 2023 +0200
1.2 +++ b/translator.py Wed Aug 30 01:49:28 2023 +0200
1.3 @@ -1348,7 +1348,7 @@
1.4 # Convert any attributes indicating value replacement.
1.5
1.6 if isinstance(argexpr, InvocationResult):
1.7 - argexprstr = "__to_arg(%s)" % argexpr
1.8 + argexprstr = "__set_local(&%s, %s)" % (argexpr.result_target, argexpr)
1.9 else:
1.10 argexprstr = str(argexpr)
1.11
1.12 @@ -1508,7 +1508,7 @@
1.13 if instantiation:
1.14 return InstantiationResult(instantiation, stages)
1.15 else:
1.16 - return InvocationResult(stages)
1.17 + return InvocationResult(result_target, stages)
1.18
1.19 # With unknown targets, the generic invocation function is applied to
1.20 # the callable and argument collections.
1.21 @@ -1519,7 +1519,7 @@
1.22 self.always_callable(refs) and 1 or 0,
1.23 len(kwargs), kwcodestr, kwargstr,
1.24 len(args), "__ARGS(%s)" % argstr))
1.25 - return InvocationResult(stages)
1.26 + return InvocationResult(result_target, stages)
1.27
1.28 def reset_temp_counters(self):
1.29