Skip to content

Commit a6746ad

Browse files
committed
Add comment
1 parent 7a2c681 commit a6746ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
401401
if let Some(errno_place) = this.active_thread_ref().last_error {
402402
Ok(errno_place)
403403
} else {
404+
// Allocate new place, set initial value to 0.
404405
let errno_layout = this.machine.layouts.u32;
405406
let errno_place = this.allocate(errno_layout, MiriMemoryKind::Machine.into());
406407
this.write_scalar(Scalar::from_u32(0), errno_place.into())?;

0 commit comments

Comments
 (0)