Skip to content

Commit

Permalink
Auto merge of #60937 - RalfJung:miri, r=oli-obk
Browse files Browse the repository at this point in the history
update Miri

r? @oli-obk
  • Loading branch information
bors committed May 19, 2019
2 parents e0d2f74 + 5f5e30f commit ce41e48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/librustc_mir/interpret/eval_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,9 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tc
trace!("{:?} is now live", local);

let local_val = LocalValue::Uninitialized;
// StorageLive *always* kills the value that's currently stored
// StorageLive *always* kills the value that's currently stored.
// However, we do not error if the variable already is live;
// see <https://github.com/rust-lang/rust/issues/42371>.
Ok(mem::replace(&mut self.frame_mut().locals[local].value, local_val))
}

Expand Down

0 comments on commit ce41e48

Please sign in to comment.