Skip to content

Commit 2cbfb87

Browse files
committed
Fix off-by-one in vector append code.
1 parent 386ba3a commit 2cbfb87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5571,9 +5571,7 @@ fn trans_vec_append_glue(@crate_ctxt cx) {
55715571
n_bytes).bcx;
55725572

55735573
put_vec_fill(copy_dst_cx, llnew_vec, n_bytes);
5574-
copy_dst_cx.build.Store(vec_p1_adjusted(copy_dst_cx,
5575-
llnew_vec, llskipnull),
5576-
pp0);
5574+
copy_dst_cx.build.Store(vec_p1(copy_dst_cx, llnew_vec), pp0);
55775575
copy_dst_cx.build.Br(copy_src_cx.llbb);
55785576

55795577

0 commit comments

Comments
 (0)