Remove bad Load in make_visit_glue, un-xfail reflect-visit-type.rs.
This commit is contained in:
parent
a5e921dcae
commit
e0f0c5c1ab
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user