@@ -195,6 +195,7 @@ fn type_of_inner(cx: @crate_ctxt, sp: span, t: ty::t)
195
195
ty:: ty_res ( _, sub, tps) {
196
196
let sub1 = ty:: substitute_type_params ( cx. tcx , tps, sub) ;
197
197
check non_ty_var( cx, sub1) ;
198
+ // FIXME #1184: Resource flag is larger than necessary
198
199
ret T_struct ( [ cx. int_type , type_of_inner ( cx, sp, sub1) ] ) ;
199
200
}
200
201
ty:: ty_var ( _) {
@@ -1474,6 +1475,7 @@ fn trans_res_drop(cx: @block_ctxt, rs: ValueRef, did: ast::def_id,
1474
1475
Call ( cx, dtor_addr, args + [ val_cast] ) ;
1475
1476
1476
1477
cx = drop_ty ( cx, val. val , inner_t_s) ;
1478
+ // FIXME #1184: Resource flag is larger than necessary
1477
1479
Store ( cx, C_int ( ccx, 0 ) , drop_flag. val ) ;
1478
1480
Br ( cx, next_cx. llbb ) ;
1479
1481
ret next_cx;
@@ -1979,6 +1981,7 @@ fn call_memmove(cx: @block_ctxt, dst: ValueRef, src: ValueRef,
1979
1981
let memmove = i. get ( key) ;
1980
1982
let src_ptr = PointerCast ( cx, src, T_ptr ( T_i8 ( ) ) ) ;
1981
1983
let dst_ptr = PointerCast ( cx, dst, T_ptr ( T_i8 ( ) ) ) ;
1984
+ // FIXME #1184: Resource flag is larger than necessary
1982
1985
let size = IntCast ( cx, n_bytes, ccx. int_type ) ;
1983
1986
let align = C_i32 ( 1i32 ) ;
1984
1987
let volatile = C_bool ( false ) ;
@@ -5172,6 +5175,7 @@ fn trans_res_ctor(cx: @local_ctxt, sp: span, dtor: ast::_fn,
5172
5175
check type_is_tup_like ( bcx, tup_t) ;
5173
5176
let flag = GEP_tup_like ( bcx, tup_t, llretptr, [ 0 , 0 ] ) ;
5174
5177
bcx = flag. bcx ;
5178
+ // FIXME #1184: Resource flag is larger than necessary
5175
5179
let one = C_int ( ccx, 1 ) ;
5176
5180
Store ( bcx, one, flag. val ) ;
5177
5181
build_return ( bcx) ;
0 commit comments