Remove needless check

This commit is contained in:
Mark Simulacrum 2016-12-19 18:25:56 -07:00
parent 0d5a8ad110
commit 6a1ec55c47

View File

@ -49,8 +49,6 @@ pub fn trans_exchange_free_dyn<'a, 'tcx>(
let ccx = bcx.ccx;
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);
}