]> git.lizzy.rs Git - rust.git/commit
Bug fix: `Rvalue(ByRef)` will issue a lifetime_end as its post_store, which is wrong.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 27 Apr 2015 14:21:51 +0000 (16:21 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 27 Apr 2015 14:21:51 +0000 (16:21 +0200)
commit805349a50b9577e81b04e34a7482d6d5dcb01527
tree80b10b79009039444d6ce2a823d57a292f25e7c5
parent24f213d0231c04c2bde1ca65bb5dc93df7c4aaa7
Bug fix: `Rvalue(ByRef)` will issue a lifetime_end as its post_store, which is wrong.

Kudos to dotdash for tracking down this fix.

Presumably the use of `ByRef` was because this value is a reference to
the drop-flag; but an Lvalue will serve just as well for that. dotdash
argues:

> since the drop_flag is in its "final home", Lvalue seems to be the
> correct choice.
src/librustc_trans/trans/adt.rs