We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcad524 commit cd8cf44Copy full SHA for cd8cf44
src/comp/middle/trans.rs
@@ -7449,8 +7449,6 @@ fn trans_vec_append_glue(@local_ctxt cx) {
7449
auto llnew_vec = vi2p(bcx, llnew_vec_res.val,
7450
T_opaque_vec_ptr());
7451
7452
- put_vec_fill(bcx, llnew_vec, C_int(0));
7453
-
7454
auto copy_dst_cx = new_sub_block_ctxt(bcx, "copy new <- dst");
7455
auto copy_src_cx = new_sub_block_ctxt(bcx, "copy new <- src");
7456
@@ -7494,6 +7492,7 @@ fn trans_vec_append_glue(@local_ctxt cx) {
7494
7492
}
7495
7493
7496
// Copy any dst elements in, omitting null if doing str.
+ put_vec_fill(copy_dst_cx, llnew_vec, C_int(0));
7497
auto n_bytes = vec_fill_adjusted(copy_dst_cx, lldst_vec, llskipnull);
7498
copy_dst_cx = copy_elts(copy_dst_cx,
7499
llelt_tydesc,
0 commit comments