1.1 --- a/micropython/ast.py Mon Aug 18 01:40:18 2008 +0200
1.2 +++ b/micropython/ast.py Mon Aug 18 01:45:23 2008 +0200
1.3 @@ -369,6 +369,7 @@
1.4 originally came from.
1.5 """
1.6
1.7 + print instruction
1.8 return (
1.9 isinstance(instruction.input, LoadTemp) and isinstance(instruction, StoreTemp) and
1.10 instruction.input.attr == instruction.attr) or (
1.11 @@ -564,8 +565,9 @@
1.12 if self._should_optimise_temp_storage() and \
1.13 self._have_temp_compatible_access():
1.14
1.15 + removed = self.active
1.16 self.remove_active_value()
1.17 - return self.active
1.18 + return removed
1.19 else:
1.20 return self.get_temp()
1.21