Skip to content

Commit a3ffa02

Browse files
committed
---
yaml --- r: 5433 b: refs/heads/master c: 42fd2a9 h: refs/heads/master i: 5431: f5c7457 v: v3
1 parent ed2b64a commit a3ffa02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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: 92af552956fd81693d335cfcab28526607ba286c
2+
refs/heads/master: 42fd2a9d89e87e8840324873df23ab76ed2f4d3d

trunk/src/comp/middle/trans.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,15 +2060,15 @@ fn move_val(cx: @block_ctxt, action: copy_action, dst: ValueRef,
20602060
if src.is_mem { ret zero_alloca(cx, src.val, t).bcx; }
20612061

20622062
// If we're here, it must be a temporary.
2063-
ret revoke_clean(cx, src_val, t);
2063+
ret revoke_clean(cx, src_val);
20642064
} else if ty::type_is_unique(tcx, t) ||
20652065
type_is_structural_or_param(tcx, t) {
20662066
if action == DROP_EXISTING { cx = drop_ty(cx, dst, t); }
20672067
cx = memmove_ty(cx, dst, src_val, t).bcx;
20682068
if src.is_mem { ret zero_alloca(cx, src_val, t).bcx; }
20692069

20702070
// If we're here, it must be a temporary.
2071-
ret revoke_clean(cx, src_val, t);
2071+
ret revoke_clean(cx, src_val);
20722072
}
20732073
/* FIXME: suggests a type constraint */
20742074
bcx_ccx(cx).sess.bug("unexpected type in trans::move_val: " +
@@ -3823,8 +3823,8 @@ fn zero_and_revoke(bcx: @block_ctxt,
38233823
for {v, t} in to_zero {
38243824
bcx = zero_alloca(bcx, v, t).bcx;
38253825
}
3826-
for {v, t} in to_revoke {
3827-
bcx = revoke_clean(bcx, v, t);
3826+
for {v, _} in to_revoke {
3827+
bcx = revoke_clean(bcx, v);
38283828
}
38293829
ret bcx;
38303830
}

trunk/src/comp/middle/trans_common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn add_clean_temp(cx: @block_ctxt, val: ValueRef, ty: ty::t) {
293293
// to a system where we can also cancel the cleanup on local variables, but
294294
// this will be more involved. For now, we simply zero out the local, and the
295295
// drop glue checks whether it is zero.
296-
fn revoke_clean(cx: @block_ctxt, val: ValueRef, t: ty::t) -> @block_ctxt {
296+
fn revoke_clean(cx: @block_ctxt, val: ValueRef) -> @block_ctxt {
297297
let sc_cx = find_scope_cx(cx);
298298
let found = -1;
299299
let i = 0;

0 commit comments

Comments
 (0)