mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
Transform the last error place to an immediate instead
This commit is contained in:
@@ -415,8 +415,7 @@ fn emulate_foreign_item(
|
||||
|
||||
"__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" => {
|
||||
|
||||
Reference in New Issue
Block a user