Skip to content

Commit 88bbba8

Browse files
committed
s/eval_usize/eval_target_usize/ for clarity
1 parent b70510d commit 88bbba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/intrinsics/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
469469
let ty::Array(_, index_len) = index.layout.ty.kind() else {
470470
span_bug!(this.cur_span(), "simd_shuffle index argument has non-array type {}", index.layout.ty)
471471
};
472-
let index_len = index_len.eval_usize(*this.tcx, this.param_env());
472+
let index_len = index_len.eval_target_usize(*this.tcx, this.param_env());
473473

474474
assert_eq!(left_len, right_len);
475475
assert_eq!(index_len, dest_len);

0 commit comments

Comments
 (0)