Fix take glue for slices.

This commit is contained in:
Michael Sullivan 2012-07-10 16:32:29 -07:00
parent a83ed81f77
commit e430a699f2

View file

@ -638,6 +638,9 @@ fn make_take_glue(bcx: block, v: ValueRef, t: ty::t) {
Store(bcx, val, v);
bcx
}
ty::ty_evec(_, ty::vstore_slice(_)) | ty::ty_estr(ty::vstore_slice(_)) {
bcx
}
ty::ty_fn(_) {
closure::make_fn_glue(bcx, v, t, take_ty)
}