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]);
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);
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);
let flag = GEP_tup_like(bcx, tup_t, llretptr, [0, 0]);
bcx = flag.bcx;
Store(bcx, C_i32(1), flag.val);
Store(bcx, C_i32(1i32), flag.val);
build_return(bcx);
finish_fn(fcx, lltop);
}