diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-26 22:43:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-26 22:43:58 +0200 |
| commit | d3974fabfdfb58314d57ab96530b2e47b5eb110e (patch) | |
| tree | 9ed85c06e0e7e920a1160aaff523713b0b445170 | |
| parent | 887c130863126d814fd00fe5eca2235708065add (diff) | |
| download | rust-d3974fabfdfb58314d57ab96530b2e47b5eb110e.tar.gz rust-d3974fabfdfb58314d57ab96530b2e47b5eb110e.zip | |
reorder code
| -rw-r--r-- | src/tools/miri/src/shims/unix/solarish/foreign_items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/shims/unix/solarish/foreign_items.rs b/src/tools/miri/src/shims/unix/solarish/foreign_items.rs index 83ccbee4953..d852b3537aa 100644 --- a/src/tools/miri/src/shims/unix/solarish/foreign_items.rs +++ b/src/tools/miri/src/shims/unix/solarish/foreign_items.rs @@ -77,11 +77,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> { // cpus. // https://docs.oracle.com/cd/E88353_01/html/E37841/pset-info-2.html - let ps_myid = this.eval_libc_i32("PS_MYID"); let pset = this.read_scalar(pset)?.to_i32()?; let tpe = this.read_pointer(tpe)?; let list = this.read_pointer(list)?; + let ps_myid = this.eval_libc_i32("PS_MYID"); if ps_myid != pset { throw_unsup_format!("pset_info is only supported with pset==PS_MYID"); } |
