This commit is contained in:
Ralf Jung 2021-05-23 12:39:27 +02:00
parent 10c495643a
commit d77d95d0a8
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
35bab923c8e5a1e8291735e7630539002eb80d7b
6e92fb409816c65cd0a78a1fbcc71e2fbabdf50a

View File

@ -719,7 +719,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
if let Some(data_race) = &mut this.memory.extra.data_race {
if data_race.multi_threaded.get() {
let alloc_meta =
this.memory.get_alloc_extra_mut(ptr.alloc_id)?.data_race.as_mut().unwrap();
this.memory.get_alloc_extra_mut(ptr.alloc_id)?.0.data_race.as_mut().unwrap();
alloc_meta.reset_clocks(ptr.offset, size);
}
}