Skip to content

Commit

Permalink
Don't use by_val for passing asm operands.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Mar 16, 2013
1 parent 3d56936 commit d68b98a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/middle/trans/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -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)
};
Expand All @@ -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)
};
Expand Down

0 comments on commit d68b98a

Please sign in to comment.