Commit 83151f91 authored by Stefan Behnel's avatar Stefan Behnel

forgot to make the lhs in FlattenInListTransform a CloneNode

parent 15d12dc5
...@@ -316,7 +316,7 @@ class FlattenInListTransform(Visitor.VisitorTransform): ...@@ -316,7 +316,7 @@ class FlattenInListTransform(Visitor.VisitorTransform):
if len(args) == 0: if len(args) == 0:
return ExprNodes.BoolNode(pos = node.pos, value = node.operator == 'not_in') return ExprNodes.BoolNode(pos = node.pos, value = node.operator == 'not_in')
if node.operand1.is_temp or node.operand1.is_simple(): if node.operand1.is_simple():
lhs = node.operand1 lhs = node.operand1
else: else:
# FIXME: allocate temp for evaluated node.operand1 # FIXME: allocate temp for evaluated node.operand1
...@@ -334,6 +334,8 @@ class FlattenInListTransform(Visitor.VisitorTransform): ...@@ -334,6 +334,8 @@ class FlattenInListTransform(Visitor.VisitorTransform):
pos = node.pos, pos = node.pos,
operand = cond, operand = cond,
type = PyrexTypes.c_bint_type)) type = PyrexTypes.c_bint_type))
if type(lhs) is not ExprNodes.CloneNode:
lhs = ExprNodes.CloneNode(lhs)
def concat(left, right): def concat(left, right):
return ExprNodes.BoolBinopNode( return ExprNodes.BoolBinopNode(
pos = node.pos, pos = node.pos,
......
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