File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
388
388
389
389
fx. bcx . ins ( ) . debugtrap ( ) ;
390
390
}
391
- sym:: copy | sym :: copy_nonoverlapping => {
391
+ sym:: copy => {
392
392
intrinsic_args ! ( fx, args => ( src, dst, count) ; intrinsic) ;
393
393
let src = src. load_scalar ( fx) ;
394
394
let dst = dst. load_scalar ( fx) ;
@@ -400,13 +400,8 @@ fn codegen_regular_intrinsic_call<'tcx>(
400
400
let byte_amount =
401
401
if elem_size != 1 { fx. bcx . ins ( ) . imul_imm ( count, elem_size as i64 ) } else { count } ;
402
402
403
- if intrinsic == sym:: copy_nonoverlapping {
404
- // FIXME emit_small_memcpy
405
- fx. bcx . call_memcpy ( fx. target_config , dst, src, byte_amount) ;
406
- } else {
407
- // FIXME emit_small_memmove
408
- fx. bcx . call_memmove ( fx. target_config , dst, src, byte_amount) ;
409
- }
403
+ // FIXME emit_small_memmove
404
+ fx. bcx . call_memmove ( fx. target_config , dst, src, byte_amount) ;
410
405
}
411
406
sym:: volatile_copy_memory | sym:: volatile_copy_nonoverlapping_memory => {
412
407
// NOTE: the volatile variants have src and dst swapped
You can’t perform that action at this time.
0 commit comments