1.1 --- a/micropython/opt.py Fri Jun 12 22:03:56 2009 +0200
1.2 +++ b/micropython/opt.py Sun Jun 14 01:18:05 2009 +0200
1.3 @@ -152,7 +152,8 @@
1.4
1.5 "Return whether 'instruction' provides a constant input."
1.6
1.7 - return isinstance(instruction, LoadAddress) and instruction.attr.assignments == 1 or \
1.8 + return isinstance(instruction, LoadAddress) and instruction.attr.assignments == 1 and \
1.9 + isinstance(instruction.attr.get_value(), Constant) or \
1.10 isinstance(instruction, (LoadConst, LoadClass, LoadFunction))
1.11
1.12 def is_constant_target(self, instruction):