Skip to content

Commit

Permalink
rm custom intrinsics::discriminant_value
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Mar 8, 2020
1 parent e6a0c60 commit 6fd3c91
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/shims/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
}
}

"discriminant_value" => {
let place = this.deref_operand(args[0])?;
let discr_val = this.read_discriminant(place.into())?.0;
this.write_scalar(Scalar::from_uint(discr_val, dest.layout.size), dest)?;
}

#[rustfmt::skip]
| "sinf32"
| "fabsf32"
Expand Down

0 comments on commit 6fd3c91

Please sign in to comment.