Commit 2031ca09 authored by Robert Bradshaw's avatar Robert Bradshaw

Function call returning a reference is an lvalue.

parent e50b6cc4
...@@ -2460,6 +2460,9 @@ class CallNode(ExprNode): ...@@ -2460,6 +2460,9 @@ class CallNode(ExprNode):
self.analyse_c_function_call(env) self.analyse_c_function_call(env)
return True return True
def is_lvalue(self):
return self.type.is_reference
def nogil_check(self, env): def nogil_check(self, env):
func_type = self.function_type() func_type = self.function_type()
if func_type.is_pyobject: if func_type.is_pyobject:
......
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