remove upstreamed intrinsic impls

This commit is contained in:
Ralf Jung
2020-07-30 18:31:40 +02:00
parent d340933112
commit 2dfde5b696
-18
View File
@@ -484,24 +484,6 @@ fn call_intrinsic(
}
}
"min_align_of_val" => {
let &[mplace] = check_arg_count(args)?;
let mplace = this.deref_operand(mplace)?;
let (_, align) = this
.size_and_align_of_mplace(mplace)?
.expect("size_of_val called on extern type");
this.write_scalar(Scalar::from_machine_usize(align.bytes(), this), dest)?;
}
"size_of_val" => {
let &[mplace] = check_arg_count(args)?;
let mplace = this.deref_operand(mplace)?;
let (size, _) = this
.size_and_align_of_mplace(mplace)?
.expect("size_of_val called on extern type");
this.write_scalar(Scalar::from_machine_usize(size.bytes(), this), dest)?;
}
// Other
"assume" => {
let &[cond] = check_arg_count(args)?;