Skip to content
New issue

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

Removed redundant return node after processing an ASR through subroutine_from_function pass #2421

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

anutosh491
Copy link
Collaborator

@anutosh491 anutosh491 commented Nov 12, 2023

Fixes #2420

As the return node would be the last statement in the function body for a function having a return var i.e ( if (x->m_return_var) ), we can simply not append it in the function body.

@certik certik merged commit b34bcc1 into lcompilers:main Nov 12, 2023
13 checks passed
@anutosh491 anutosh491 deleted the remove_return branch November 13, 2023 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove redundant Return node after processing an ASR through subroutine_from_function pass
2 participants