Remove unreachable call to unreachable

This commit is contained in:
Mark Simulacrum 2016-12-18 23:01:06 -07:00
parent 6e3d8cda2c
commit dd1890f7f4

View File

@ -47,17 +47,12 @@ pub fn trans_exchange_free_dyn<'a, 'tcx>(
let callee = Callee::def(bcx.ccx(), def_id, bcx.tcx().intern_substs(&[]));
let ccx = bcx.ccx();
let fn_ret = callee.ty.fn_ret();
let fn_ty = callee.direct_fn_type(ccx, &[]);
assert!(!fn_ty.ret.is_indirect() && fn_ty.ret.cast.is_none());
let llret = bcx.call(callee.reify(ccx), &args[..], None);
fn_ty.apply_attrs_callsite(llret);
if fn_ret.0.is_never() {
bcx.unreachable();
}
}
pub fn trans_exchange_free_ty<'a, 'tcx>(