correct more i32 vs int mismatches

This commit is contained in:
Niko Matsakis 2011-10-26 17:28:04 -07:00 committed by Brian Anderson
parent 602ae9139c
commit e012fd03f3

View File

@ -1475,7 +1475,7 @@ fn trans_res_drop(cx: @block_ctxt, rs: ValueRef, did: ast::def_id,
Call(cx, dtor_addr, args + [val_cast]); Call(cx, dtor_addr, args + [val_cast]);
cx = drop_ty(cx, val.val, inner_t_s); cx = drop_ty(cx, val.val, inner_t_s);
Store(cx, C_int(ccx, 0), drop_flag.val); Store(cx, C_i32(0i32), drop_flag.val);
Br(cx, next_cx.llbb); Br(cx, next_cx.llbb);
ret next_cx; ret next_cx;
} }
@ -5206,7 +5206,7 @@ fn trans_res_ctor(cx: @local_ctxt, sp: span, dtor: ast::_fn,
check type_is_tup_like(bcx, tup_t); check type_is_tup_like(bcx, tup_t);
let flag = GEP_tup_like(bcx, tup_t, llretptr, [0, 0]); let flag = GEP_tup_like(bcx, tup_t, llretptr, [0, 0]);
bcx = flag.bcx; bcx = flag.bcx;
Store(bcx, C_i32(1), flag.val); Store(bcx, C_i32(1i32), flag.val);
build_return(bcx); build_return(bcx);
finish_fn(fcx, lltop); finish_fn(fcx, lltop);
} }