Commit 557b8ed7 authored by Stefan Behnel's avatar Stefan Behnel

fix temp result release 'hack' for stack allocated literal lists

parent 4bebe27e
......@@ -5453,13 +5453,13 @@ class ListNode(SequenceNode):
error(self.pos, "Cannot coerce list to type '%s'" % dst_type)
return self
def release_temp(self, env):
def release_temp_result(self, env):
if self.type.is_array:
# To be valid C++, we must allocate the memory on the stack
# manually and be sure not to reuse it for something else.
pass
else:
SequenceNode.release_temp(self, env)
SequenceNode.release_temp_result(self, env)
def calculate_constant_result(self):
if self.mult_factor:
......
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