Skip to content

Commit e0f0c5c

Browse files
committed
Remove bad Load in make_visit_glue, un-xfail reflect-visit-type.rs.
1 parent a5e921d commit e0f0c5c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ fn make_visit_glue(bcx: block, v: ValueRef, t: ty::t) {
644644
assert bcx.ccx().tcx.intrinsic_ifaces.contains_key("ty_visitor");
645645
let (iid, ty) = bcx.ccx().tcx.intrinsic_ifaces.get("ty_visitor");
646646
let v = PointerCast(bcx, v, T_ptr(type_of::type_of(bcx.ccx(), ty)));
647-
bcx = reflect::emit_calls_to_iface_visit_ty(bcx, t, Load(bcx, v), iid);
647+
bcx = reflect::emit_calls_to_iface_visit_ty(bcx, t, v, iid);
648648
build_return(bcx);
649649
}
650650

src/test/run-pass/reflect-visit-type.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// xfail-test
2-
//
3-
// This doesn't work quite yet. There's something wrong with the callback
4-
// type when dispatching through the visit_glue. Get a GEP crash on the
5-
// callee.
6-
71
enum my_visitor = @{ mut types: [str] };
82

93
impl of intrinsic::ty_visitor for my_visitor {

0 commit comments

Comments
 (0)