Expand on "uninit" FIXME.

This commit is contained in:
Scott Olson 2016-10-19 20:27:35 -06:00
parent e807f0c405
commit d6b4e1aba6

View File

@ -244,7 +244,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
}
"uninit" => {
// FIXME(solson)
// FIXME(solson): Attempt writing a None over the destination when it's an
// Lvalue::Local (that is not ByRef). Otherwise do the mark_definedness as usual.
let dest = self.force_allocation(dest)?.to_ptr();
let size = dest_layout.size(&self.tcx.data_layout).bytes() as usize;