Remove bad Load in make_visit_glue, un-xfail reflect-visit-type.rs.

This commit is contained in:
Graydon Hoare 2012-05-28 13:19:31 -07:00
parent a5e921dcae
commit e0f0c5c1ab
2 changed files with 1 additions and 7 deletions

View File

@ -644,7 +644,7 @@ fn make_visit_glue(bcx: block, v: ValueRef, t: ty::t) {
assert bcx.ccx().tcx.intrinsic_ifaces.contains_key("ty_visitor");
let (iid, ty) = bcx.ccx().tcx.intrinsic_ifaces.get("ty_visitor");
let v = PointerCast(bcx, v, T_ptr(type_of::type_of(bcx.ccx(), ty)));
bcx = reflect::emit_calls_to_iface_visit_ty(bcx, t, Load(bcx, v), iid);
bcx = reflect::emit_calls_to_iface_visit_ty(bcx, t, v, iid);
build_return(bcx);
}

View File

@ -1,9 +1,3 @@
// xfail-test
//
// This doesn't work quite yet. There's something wrong with the callback
// type when dispatching through the visit_glue. Get a GEP crash on the
// callee.
enum my_visitor = @{ mut types: [str] };
impl of intrinsic::ty_visitor for my_visitor {