Don't use by_val for passing asm operands.

This commit is contained in:
Luqman Aden 2013-03-13 15:32:48 -07:00 committed by Luqman Aden
parent 3d56936be3
commit d68b98a5bf

View file

@ -567,7 +567,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
constraints.push(copy *c);
let aoutty = ty::arg {
mode: ast::expl(ast::by_val),
mode: ast::expl(ast::by_copy),
ty: expr_ty(bcx, out)
};
aoutputs.push(unpack_result!(bcx, {
@ -581,7 +581,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
};
let outty = ty::arg {
mode: ast::expl(ast::by_val),
mode: ast::expl(ast::by_copy),
ty: expr_ty(bcx, e)
};
@ -601,7 +601,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
constraints.push(copy *c);
let inty = ty::arg {
mode: ast::expl(ast::by_val),
mode: ast::expl(ast::by_copy),
ty: expr_ty(bcx, in)
};