Skip to content

Commit 6d9985f

Browse files
committed
---
yaml --- r: 2273 b: refs/heads/master c: 3e08609 h: refs/heads/master i: 2271: 42061df v: v3
1 parent bdbc64f commit 6d9985f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-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: 1f44887761439c57d67f132d3ff11cc8b3f6a6b4
2+
refs/heads/master: 3e08609ed7740f8aca9bded27b9bdda3591d84d7

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7448,12 +7448,14 @@ fn trans_vec_append_glue(@local_ctxt cx) {
74487448
bcx = llnew_vec_res.bcx;
74497449
auto llnew_vec = vi2p(bcx, llnew_vec_res.val,
74507450
T_opaque_vec_ptr());
7451+
llvm.LLVMSetValueName(llnew_vec, _str.buf("llnew_vec"));
74517452

74527453
auto copy_dst_cx = new_sub_block_ctxt(bcx, "copy new <- dst");
74537454
auto copy_src_cx = new_sub_block_ctxt(bcx, "copy new <- src");
74547455

74557456
auto pp0 = alloca(bcx, T_ptr(T_i8()));
74567457
bcx.build.Store(vec_p1(bcx, llnew_vec), pp0);
7458+
llvm.LLVMSetValueName(pp0, _str.buf("pp0"));
74577459

74587460
bcx.build.CondBr(bcx.build.TruncOrBitCast
74597461
(bcx.build.Load(llcopy_dst_ptr),
@@ -7469,11 +7471,13 @@ fn trans_vec_append_glue(@local_ctxt cx) {
74697471
ValueRef n_bytes) -> result {
74707472

74717473
auto src_lim = cx.build.GEP(src, vec(n_bytes));
7474+
llvm.LLVMSetValueName(src_lim, _str.buf("src_lim"));
74727475

74737476
auto elt_llsz =
74747477
cx.build.Load(cx.build.GEP(elt_tydesc,
74757478
vec(C_int(0),
74767479
C_int(abi.tydesc_field_size))));
7480+
llvm.LLVMSetValueName(elt_llsz, _str.buf("elt_llsz"));
74777481

74787482
fn take_one(ValueRef elt_tydesc,
74797483
@block_ctxt cx,
@@ -7494,6 +7498,8 @@ fn trans_vec_append_glue(@local_ctxt cx) {
74947498
// Copy any dst elements in, omitting null if doing str.
74957499

74967500
auto n_bytes = vec_fill_adjusted(copy_dst_cx, lldst_vec, llskipnull);
7501+
llvm.LLVMSetValueName(n_bytes, _str.buf("n_bytes"));
7502+
74977503
copy_dst_cx = copy_elts(copy_dst_cx,
74987504
llelt_tydesc,
74997505
vec_p0(copy_dst_cx, llnew_vec),

trunk/src/test/run-pass/vec-growth.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// xfail-stage0
2-
31
fn main() {
42
auto v = vec(1);
53
v += vec(2);

0 commit comments

Comments
 (0)