Skip to content

Commit a11cc4f

Browse files
committed
---
yaml --- r: 2701 b: refs/heads/master c: 779dd80 h: refs/heads/master i: 2699: f2f5022 v: v3
1 parent 86c05ac commit a11cc4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 7b4eec215ccee45fc4a2c23bcb127951ae5250af
2+
refs/heads/master: 779dd809d279ee26068365f0fd47583e7a488781

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6425,7 +6425,8 @@ fn trans_block(&@block_ctxt cx, &ast::block b) -> result {
64256425
ret r;
64266426
} else {
64276427
auto r_ty = ty::expr_ty(cx.fcx.lcx.ccx.tcx, e);
6428-
if (!ty::type_is_nil(cx.fcx.lcx.ccx.tcx, r_ty)) {
6428+
if (!ty::type_is_nil(cx.fcx.lcx.ccx.tcx, r_ty)
6429+
&& !ty::type_is_bot(cx.fcx.lcx.ccx.tcx, r_ty)) {
64296430
// The value resulting from the block gets copied into an
64306431
// alloca created in an outer scope and its refcount
64316432
// bumped so that it can escape this block. This means

0 commit comments

Comments
 (0)