@@ -1668,7 +1668,7 @@ fn make_take_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
1668
1668
1669
1669
} else if ( ty. type_is_structural( t) ) {
1670
1670
ret iter_structural_ty( cx, v, t,
1671
- bind incr_all_refcnts ( _, _, _) ) ;
1671
+ bind take_ty ( _, _, _) ) ;
1672
1672
}
1673
1673
ret res( cx, C_nil ( ) ) ;
1674
1674
}
@@ -2315,7 +2315,7 @@ fn call_tydesc_glue(@block_ctxt cx, ValueRef v, @ty.t t, int field) {
2315
2315
call_tydesc_glue_full( td. bcx, v, td. val, field) ;
2316
2316
}
2317
2317
2318
- fn incr_all_refcnts ( @block_ctxt cx,
2318
+ fn take_ty ( @block_ctxt cx,
2319
2319
ValueRef v,
2320
2320
@ty. t t) -> result {
2321
2321
if ( !ty. type_is_scalar( t) ) {
@@ -2397,15 +2397,15 @@ fn copy_ty(@block_ctxt cx,
2397
2397
ret res( cx, C_nil ( ) ) ;
2398
2398
2399
2399
} else if ( ty. type_is_boxed( t) ) {
2400
- auto r = incr_all_refcnts ( cx, src, t) ;
2400
+ auto r = take_ty ( cx, src, t) ;
2401
2401
if ( action == DROP_EXISTING ) {
2402
2402
r = drop_ty( r. bcx, r. bcx. build. Load ( dst) , t) ;
2403
2403
}
2404
2404
ret res( r. bcx, r. bcx. build. Store ( src, dst) ) ;
2405
2405
2406
2406
} else if ( ty. type_is_structural( t) ||
2407
2407
ty. type_has_dynamic_size( t) ) {
2408
- auto r = incr_all_refcnts ( cx, src, t) ;
2408
+ auto r = take_ty ( cx, src, t) ;
2409
2409
if ( action == DROP_EXISTING ) {
2410
2410
r = drop_ty( r. bcx, dst, t) ;
2411
2411
}
0 commit comments