Skip to content

Commit 6ca81b3

Browse files
committed
Fix a pointer bug.
1 parent 553beda commit 6ca81b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7969,10 +7969,9 @@ fn process_fwding_mthd(@local_ctxt cx, &span sp, @ty::method m,
79697969
m.inputs,
79707970
m.output,
79717971
vec::len[ast::ty_param](ty_params));
7972-
// TODO: can we leave out one of these T_ptrs and then get rid of the
7973-
// Load?
79747972
llorig_mthd = bcx.build.PointerCast(llorig_mthd,
7975-
T_ptr(llorig_mthd_ty));
7973+
T_ptr(T_ptr(llorig_mthd_ty)));
7974+
llorig_mthd = bcx.build.Load(llorig_mthd);
79767975

79777976
// Set up the three implicit arguments to the original method we'll need
79787977
// to call.

0 commit comments

Comments
 (0)