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

Function call returning a reference is an lvalue.

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