Skip to content

Commit 73428e3

Browse files
committed
---
yaml --- r: 5530 b: refs/heads/master c: 1e988f2 h: refs/heads/master v: v3
1 parent e553eea commit 73428e3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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: 4c5e42a1396396dcf36f84fda2f08c5f9fa6b6c4
2+
refs/heads/master: 1e988f228d3bef3547fa711aaee3ba89e0340eaf

trunk/src/comp/middle/trans.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3596,6 +3596,10 @@ fn trans_bind_1(cx: @block_ctxt, outgoing_fty: ty::t,
35963596
bound_vals += [lv];
35973597
bound_tys += [ty::expr_ty(bcx_tcx(cx), e)];
35983598
}
3599+
if bcx.unreachable {
3600+
ret rslt(bcx, llvm::LLVMGetUndef(
3601+
T_ptr(type_of_or_i8(bcx, outgoing_fty))));
3602+
}
35993603

36003604
// Actually construct the closure
36013605
let closure =

0 commit comments

Comments
 (0)