Fix trans_put to properly return (). Closes #773.

This commit is contained in:
Michael Sullivan 2011-08-03 18:10:54 -07:00
parent 5ea8d7f467
commit 5d5a3ca52d
1 changed files with 2 additions and 1 deletions

View File

@ -5493,7 +5493,8 @@ fn trans_put(cx: &@block_ctxt, e: &option::t[@ast::expr]) -> result {
llargs += ~[r.val];
}
}
ret rslt(bcx, bcx.build.FastCall(llcallee, llargs));
bcx.build.FastCall(llcallee, llargs);
ret rslt(bcx, C_nil());
}
fn trans_break_cont(sp: &span, cx: &@block_ctxt, to_end: bool) -> result {