Skip to content

Remove outdated unreachable check from call_visit_glue - #15784

Merged
bors merged 2 commits into
rust-lang:masterfrom
dotdash:unreach
Jul 20, 2014
Merged

Remove outdated unreachable check from call_visit_glue#15784
bors merged 2 commits into
rust-lang:masterfrom
dotdash:unreach

Conversation

@dotdash

@dotdash dotdash commented Jul 18, 2014

Copy link
Copy Markdown
Contributor

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

luqmana commented Jul 18, 2014

Copy link
Copy Markdown
Contributor

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