We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From #2419
When we go from
def func() -> S: return pi
To something like
def func(r: Out[S]) -> None: r = pi
Or any cases like this where the subroutine_from_function pass is involved, we don't get rid of the redundant Return node in the function body.
Return
(= (Var 3 _lpython_return_variable) (IntrinsicScalarFunction SymbolicPi [] 0 (SymbolicExpression) () ) () ) (Return)
Whereas x->m_return_var points to nullptr so we don't need this node.
x->m_return_var
nullptr
The text was updated successfully, but these errors were encountered:
Looks like that this is fixed now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
From #2419
When we go from
To something like
Or any cases like this where the subroutine_from_function pass is involved, we don't get rid of the redundant
Return
node in the function body.Whereas
x->m_return_var
points tonullptr
so we don't need this node.The text was updated successfully, but these errors were encountered: