rm custom intrinsics::discriminant_value

This commit is contained in:
Bastian Kauschke 2020-03-08 14:31:57 +01:00
parent e6a0c60a0f
commit 6fd3c9174c

View File

@ -248,12 +248,6 @@ fn call_intrinsic(
} }
} }
"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] #[rustfmt::skip]
| "sinf32" | "sinf32"
| "fabsf32" | "fabsf32"