From: David Kerkeslager Date: Wed, 24 Jul 2019 16:58:53 +0000 (-0400) Subject: Remove unecessary pushing/popping for function arguments X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=5d396bb845ee9f2b8e2c4bae9e1de351661f5113;p=fur Remove unecessary pushing/popping for function arguments --- diff --git a/normalization.py b/normalization.py index 291646a..b55d42c 100644 --- a/normalization.py +++ b/normalization.py @@ -301,21 +301,11 @@ def normalize_function_call_expression(counter, expression): for s in argument_prestatements: prestatements.append(s) - variable = '${}'.format(counter) - prestatements.append( - NormalVariableInitializationStatement( - variable=variable, - expression=normalized_argument, - ) - ) prestatements.append( NormalPushStatement( - expression=NormalVariableExpression( - variable=variable, - ), + expression=normalized_argument, ), ) - counter += 1 counter, function_prestatements, function_expression = normalize_expression( counter,