Skip to content

Commit 5d5a3ca

Browse files
committed
Fix trans_put to properly return (). Closes #773.
1 parent 5ea8d7f commit 5d5a3ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5493,7 +5493,8 @@ fn trans_put(cx: &@block_ctxt, e: &option::t[@ast::expr]) -> result {
54935493
llargs += ~[r.val];
54945494
}
54955495
}
5496-
ret rslt(bcx, bcx.build.FastCall(llcallee, llargs));
5496+
bcx.build.FastCall(llcallee, llargs);
5497+
ret rslt(bcx, C_nil());
54975498
}
54985499

54995500
fn trans_break_cont(sp: &span, cx: &@block_ctxt, to_end: bool) -> result {

0 commit comments

Comments
 (0)