Skip to content

Commit b4a3805

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1789 b: refs/heads/master c: 530fe1d h: refs/heads/master i: 1787: 3caf9b3 v: v3
1 parent 910b781 commit b4a3805

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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: 0bcf49305cf34d6894c94b2eb8efcb3c022ffc0d
2+
refs/heads/master: 530fe1daea2d99bf6a2be132766c43489b6cfd8a

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4793,7 +4793,8 @@ fn trans_send(@block_ctxt cx, @ast.expr lhs, @ast.expr rhs,
47934793
auto data_tmp = copy_ty(bcx, INIT, data_alloc.val, data.val, unit_ty);
47944794
bcx = data_tmp.bcx;
47954795

4796-
// TODO: Cleanups?
4796+
find_scope_cx(bcx).cleanups +=
4797+
vec(clean(bind drop_ty(_, data_alloc.val, unit_ty)));
47974798

47984799
auto sub = trans_upcall(bcx, "upcall_send",
47994800
vec(vp2i(bcx, chn.val),
@@ -4823,7 +4824,7 @@ fn trans_recv(@block_ctxt cx, @ast.expr lhs, @ast.expr rhs,
48234824
auto cp = copy_ty(bcx, DROP_EXISTING, data.res.val, data_load, unit_ty);
48244825
bcx = cp.bcx;
48254826

4826-
// TODO: Cleanups?
4827+
// TODO: Any cleanup need to be done here?
48274828

48284829
ret res(bcx, data.res.val);
48294830
}

0 commit comments

Comments
 (0)