Skip to content

Commit d3974fa

Browse files
authored
reorder code
1 parent 887c130 commit d3974fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/unix/solarish/foreign_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
7777
// cpus.
7878
// https://docs.oracle.com/cd/E88353_01/html/E37841/pset-info-2.html
7979

80-
let ps_myid = this.eval_libc_i32("PS_MYID");
8180
let pset = this.read_scalar(pset)?.to_i32()?;
8281
let tpe = this.read_pointer(tpe)?;
8382
let list = this.read_pointer(list)?;
8483

84+
let ps_myid = this.eval_libc_i32("PS_MYID");
8585
if ps_myid != pset {
8686
throw_unsup_format!("pset_info is only supported with pset==PS_MYID");
8787
}

0 commit comments

Comments
 (0)