Commit 13ee9bf1 authored by Xavier Thompson's avatar Xavier Thompson

Fix 'consume' code generation

parent afdf8cde
......@@ -11460,6 +11460,9 @@ class ConsumeNode(ExprNode):
code.putln("%s = NULL;" % self.operand.result())
def generate_post_assignment_code(self, code):
if self.is_temp:
ExprNode.generate_post_assignment_code(self, code)
else:
self.operand.generate_post_assignment_code(code)
......
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