Skip to content

Commit e091ab8

Browse files
committed
also rename the SIMD intrinsic
1 parent 2666041 commit e091ab8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/shims/intrinsics/simd.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
484484
dest.transmute(this.machine.layouts.uint(dest.layout.size).unwrap(), this)?;
485485
this.write_int(res, &dest)?;
486486
}
487-
"cast" | "as" | "cast_ptr" | "expose_addr" | "from_exposed_addr" => {
487+
"cast" | "as" | "cast_ptr" | "expose_addr" | "with_exposed_provenance" => {
488488
let [op] = check_arg_count(args)?;
489489
let (op, op_len) = this.operand_to_simd(op)?;
490490
let (dest, dest_len) = this.mplace_to_simd(dest)?;
@@ -495,7 +495,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
495495
let safe_cast = intrinsic_name == "as";
496496
let ptr_cast = intrinsic_name == "cast_ptr";
497497
let expose_cast = intrinsic_name == "expose_addr";
498-
let from_exposed_cast = intrinsic_name == "from_exposed_addr";
498+
let from_exposed_cast = intrinsic_name == "with_exposed_provenance";
499499

500500
for i in 0..dest_len {
501501
let op = this.read_immediate(&this.project_index(&op, i)?)?;
@@ -529,7 +529,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
529529
(ty::RawPtr(..), ty::Int(_) | ty::Uint(_)) if expose_cast =>
530530
this.pointer_expose_address_cast(&op, dest.layout)?,
531531
(ty::Int(_) | ty::Uint(_), ty::RawPtr(..)) if from_exposed_cast =>
532-
this.pointer_from_exposed_address_cast(&op, dest.layout)?,
532+
this.pointer_with_exposed_provenance_cast(&op, dest.layout)?,
533533
// Error otherwise
534534
_ =>
535535
throw_unsup_format!(

0 commit comments

Comments
 (0)