Transform the last error place to an immediate instead
This commit is contained in:
parent
619ccf3834
commit
8a8fa53a5d
1 changed files with 1 additions and 2 deletions
|
|
@ -415,8 +415,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
|
||||
"__errno_location" | "__error" => {
|
||||
let errno_place = this.machine.last_error.unwrap();
|
||||
let errno_scalar: Scalar<Tag> = this.check_mplace_access(errno_place.into(), Some(Size::from_bits(32)))?.unwrap().into();
|
||||
this.write_scalar(errno_scalar, dest)?;
|
||||
this.write_scalar(errno_place.to_ref().to_scalar()?, dest)?;
|
||||
}
|
||||
|
||||
"getenv" => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue