miri: treat non-memory local variables properly for data race detection
This commit is contained in:
parent
304b7f801b
commit
a888905226
16 changed files with 433 additions and 18 deletions
|
@ -719,6 +719,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
|
|||
if matches!(op, Operand::Immediate(_)) {
|
||||
assert!(!layout.is_unsized());
|
||||
}
|
||||
M::after_local_read(self, local)?;
|
||||
Ok(OpTy { op, layout })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue