changeset 352:f13ddb44761f

runtime_sugar: remember to visit subexpressions of a return
author Sigurd Meldgaard <stm@daimi.au.dk>
date Tue, 20 Jul 2010 14:53:36 +0200
parents 9cafe55fd39a
children 31ce799dec84
files pysmcl/runtime_sugar.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/runtime_sugar.py	Tue Jul 20 14:52:53 2010 +0200
+++ b/pysmcl/runtime_sugar.py	Tue Jul 20 14:53:36 2010 +0200
@@ -61,6 +61,7 @@
             return node
 
         def visit_Return(self, node):
+            self.generic_visit(node)
             returnValue = ast.copy_location(
                 ast.Name(id="returnValue", ctx=ast.Load()), node)
             call = ast.copy_location(ast.Call(func=returnValue,