]> git.lizzy.rs Git - rust.git/commit
Issue 30530: initialize allocas for `Datum::to_lvalue_datum_in_scope`.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 8 Jan 2016 19:40:52 +0000 (20:40 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 12 Jan 2016 14:24:52 +0000 (15:24 +0100)
commit965b0bfefe27b0a487b7243cb1a0a6f36a2be70b
treed13837241155870ed1455241315ef63ce0f9f4f7
parent3246eaec90d3369347da28353b8aa23c9347d592
Issue 30530: initialize allocas for `Datum::to_lvalue_datum_in_scope`.

In particular, bring back the `zero` flag for `lvalue_scratch_datum`,
which controls whether the alloca's created immediately at function
start are uninitialized at that point or have their embedded
drop-flags initialized to "dropped".

Then made `to_lvalue_datum_in_scope` pass "dropped" as `zero` flag.
src/librustc_trans/trans/adt.rs
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/datum.rs