Skip to content

Commit 12f4bed

Browse files
committed
---
yaml --- r: 2270 b: refs/heads/master c: cd8cf44 h: refs/heads/master v: v3
1 parent 6b29d49 commit 12f4bed

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bcad52451cb63118ee9b67684b8b70e3cb5f4aff
2+
refs/heads/master: cd8cf44d1d876c3eb0206899e46c007171dbe32e

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7449,8 +7449,6 @@ fn trans_vec_append_glue(@local_ctxt cx) {
74497449
auto llnew_vec = vi2p(bcx, llnew_vec_res.val,
74507450
T_opaque_vec_ptr());
74517451

7452-
put_vec_fill(bcx, llnew_vec, C_int(0));
7453-
74547452
auto copy_dst_cx = new_sub_block_ctxt(bcx, "copy new <- dst");
74557453
auto copy_src_cx = new_sub_block_ctxt(bcx, "copy new <- src");
74567454

@@ -7494,6 +7492,7 @@ fn trans_vec_append_glue(@local_ctxt cx) {
74947492
}
74957493

74967494
// Copy any dst elements in, omitting null if doing str.
7495+
put_vec_fill(copy_dst_cx, llnew_vec, C_int(0));
74977496
auto n_bytes = vec_fill_adjusted(copy_dst_cx, lldst_vec, llskipnull);
74987497
copy_dst_cx = copy_elts(copy_dst_cx,
74997498
llelt_tydesc,

0 commit comments

Comments
 (0)