Skip to content

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
@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