Skip to content

Commit 3235b22

Browse files
committed
Fix handling of fat pointer function arguments
The store for the "extra" data went to the wrong destination.
1 parent 5a35f49 commit 3235b22

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_trans/trans/mir

1 file changed

+1
-1
lines changed

src/librustc_trans/trans/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn arg_value_refs<'bcx, 'tcx>(bcx: Block<'bcx, 'tcx>,
169169
idx += 2;
170170
let lltemp = base::alloc_ty(bcx, arg_ty, &format!("arg{}", arg_index));
171171
build::Store(bcx, lldata, expr::get_dataptr(bcx, lltemp));
172-
build::Store(bcx, llextra, expr::get_dataptr(bcx, lltemp));
172+
build::Store(bcx, llextra, expr::get_meta(bcx, lltemp));
173173
lltemp
174174
} else {
175175
// otherwise, arg is passed by value, so make a

0 commit comments

Comments
 (0)