Remove an assertion from trans::base::iter_structural_ty

I had put in an assertion that if the ty is a class, it doesn't have a dtor,
but that doesn't make sense, since this gets used to make take glue and
not just drop glue.
This commit is contained in:
Tim Chevalier 2012-05-15 20:24:05 -07:00
parent ab735320b4
commit e2d18c9a8a

View File

@ -1057,8 +1057,6 @@ fn iter_structural_ty(cx: block, av: ValueRef, t: ty::t,
ret next_cx;
}
ty::ty_class(did, substs) {
assert(ty::ty_dtor(cx.tcx(), did) == none);
// a class w/ no dtor is like a record type
for vec::eachi(ty::class_items_as_fields(cx.tcx(), did, substs))
{|i, fld|
let llfld_a = GEPi(cx, av, [0u, i]);