Skip to content

Commit 95d7b50

Browse files
committed
---
yaml --- r: 6448 b: refs/heads/master c: acbc4aa h: refs/heads/master v: v3
1 parent 4a80710 commit 95d7b50

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
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: a8dd52ed3649d2dba3474a80254d1cc5180797f3
2+
refs/heads/master: acbc4aa9f8f46545c8c11422c62b392e3ef64cf5

trunk/src/comp/middle/trans_common.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,8 @@ fn revoke_clean(cx: @block_ctxt, val: ValueRef) {
297297
}
298298
i += 1;
299299
}
300-
// The value does not have a cleanup associated with it. Continue to next
301-
// scope.
302-
if found == -1 {
303-
alt sc_cx.parent {
304-
parent_some(parent) { revoke_clean(parent, val); } _ {}
305-
}
306-
ret;
307-
}
300+
// The value does not have a cleanup associated with it.
301+
if found == -1 { ret; }
308302
// We found the cleanup and remove it
309303
sc_cx.cleanups =
310304
std::vec::slice(sc_cx.cleanups, 0u, found as uint) +

0 commit comments

Comments
 (0)