Commit 8a3e66c0 authored by Stefan Behnel's avatar Stefan Behnel

literals are always 'nonlocally immutable'

parent d05c5e3b
...@@ -389,7 +389,7 @@ class ExprNode(Node): ...@@ -389,7 +389,7 @@ class ExprNode(Node):
def nonlocally_immutable(self): def nonlocally_immutable(self):
# Returns whether this variable is a safe reference, i.e. # Returns whether this variable is a safe reference, i.e.
# can't be modified as part of globals or closures. # can't be modified as part of globals or closures.
return self.is_temp or self.type.is_array or self.type.is_cfunction return self.is_literal or self.is_temp or self.type.is_array or self.type.is_cfunction
# --------------- Type Analysis ------------------ # --------------- Type Analysis ------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment