Title: Removed redundant return node after processing an ASR through subroutine_from_function pass by anutosh491 · Pull Request #2421 · lcompilers/lpython · GitHub
Open Graph Title: Removed redundant return node after processing an ASR through subroutine_from_function pass by anutosh491 · Pull Request #2421 · lcompilers/lpython
X Title: Removed redundant return node after processing an ASR through subroutine_from_function pass by anutosh491 · Pull Request #2421 · lcompilers/lpython
Description: 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.
Open Graph Description: 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.
X Description: 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.
Opengraph URL: https://github.com/lcompilers/lpython/pull/2421
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d837320d-a258-f885-18e7-6a7bd08d2e8f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AB3A:2CF514:AC0299:E27952:696B550D |
| html-safe-nonce | e2e948469bf13c68a1031cbac3f625a1f4618885b8b1616235082ef3407d1fdc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjNBOjJDRjUxNDpBQzAyOTk6RTI3OTUyOjY5NkI1NTBEIiwidmlzaXRvcl9pZCI6IjU1MzQxOTkzOTU3MDkwNDgwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ee4ac2c9224ba92ddc0674a9943079c6d7223e956ff8d509b235db2e0b53c714 |
| hovercard-subject-tag | pull_request:1597680328 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/lcompilers/lpython/2421/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/21462bde322ea5c9cddf8da5604a6086e27577821cdc6a60e4c66f4804cb8197/lcompilers/lpython/pull/2421 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21462bde322ea5c9cddf8da5604a6086e27577821cdc6a60e4c66f4804cb8197/lcompilers/lpython/pull/2421 |
| og:image:alt | 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. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anutosh491 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git |
| octolytics-dimension-user_id | 96538276 |
| octolytics-dimension-user_login | lcompilers |
| octolytics-dimension-repository_id | 442864346 |
| octolytics-dimension-repository_nwo | lcompilers/lpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 442864346 |
| octolytics-dimension-repository_network_root_nwo | lcompilers/lpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width