let bcx = match dest {
expr::SaveIn(_) => bcx,
expr::Ignore => {
- glue::drop_ty(bcx, llresult, result_ty, debug_loc)
+ let bcx = glue::drop_ty(bcx, llresult, result_ty, debug_loc);
+ if !type_is_zero_size(ccx, result_ty) {
+ call_lifetime_end(bcx, llresult);
+ }
+ bcx
}
};