Fix temporary-spilling logic in trans_args, uncomment most of lib-deque.rs (which now passes on stage0).
This commit is contained in:
parent
0910a7323c
commit
afeb3a417c
2 changed files with 5 additions and 11 deletions
|
|
@ -4403,7 +4403,11 @@ fn trans_args(@block_ctxt cx,
|
|||
lv = trans_lval(bcx, e);
|
||||
} else {
|
||||
auto r = trans_expr(bcx, e);
|
||||
lv = lval_val(r.bcx, r.val);
|
||||
if (type_is_immediate(ty.expr_ty(e))) {
|
||||
lv = lval_val(r.bcx, r.val);
|
||||
} else {
|
||||
lv = lval_mem(r.bcx, r.val);
|
||||
}
|
||||
}
|
||||
bcx = lv.res.bcx;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue