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

Fix 'consume' code generation

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