Skip to content

Remove outdated unreachable check from call_visit_glue #15784

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

Merged
merged 2 commits into from
Jul 20, 2014

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Jul 18, 2014

call_visit_glue is only ever called from trans_intrinsic, and the
block won't be unreachable there. Also, the comment doesn't make sense
anymore. When the code was introduced in 38fee95 the function was
also responsible for the cleanup glue, which is no longer the case.

While we're at it, also fixed the debug message to output the right
function name.

`call_visit_glue` is only ever called from trans_intrinsic, and the
block won't be unreachable there. Also, the comment doesn't make sense
anymore. When the code was introduced in 38fee95 the function was
also responsible for the cleanup glue, which is no longer the case.

While we're at it, also fixed the debug message to output the right
function name.
@luqmana
Copy link
Member

luqmana commented Jul 18, 2014

We might as well just remove that last argument since it's only ever called with None.

call_visit_glue() is only ever called with None as its last argument, so
we can remove it as well.
bors added a commit that referenced this pull request Jul 20, 2014
`call_visit_glue` is only ever called from trans_intrinsic, and the
block won't be unreachable there. Also, the comment doesn't make sense
anymore. When the code was introduced in 38fee95 the function was
also responsible for the cleanup glue, which is no longer the case.

While we're at it, also fixed the debug message to output the right
function name.
@bors bors closed this Jul 20, 2014
@bors bors merged commit d368ffd into rust-lang:master Jul 20, 2014
@dotdash dotdash deleted the unreach branch February 4, 2015 12:42
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.

3 participants