Skip to content

Commit d68b98a

Browse files
committed
Don't use by_val for passing asm operands.
1 parent 3d56936 commit d68b98a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/middle/trans/expr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
567567
constraints.push(copy *c);
568568

569569
let aoutty = ty::arg {
570-
mode: ast::expl(ast::by_val),
570+
mode: ast::expl(ast::by_copy),
571571
ty: expr_ty(bcx, out)
572572
};
573573
aoutputs.push(unpack_result!(bcx, {
@@ -581,7 +581,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
581581
};
582582
583583
let outty = ty::arg {
584-
mode: ast::expl(ast::by_val),
584+
mode: ast::expl(ast::by_copy),
585585
ty: expr_ty(bcx, e)
586586
};
587587
@@ -601,7 +601,7 @@ fn trans_rvalue_stmt_unadjusted(bcx: block, expr: @ast::expr) -> block {
601601
constraints.push(copy *c);
602602
603603
let inty = ty::arg {
604-
mode: ast::expl(ast::by_val),
604+
mode: ast::expl(ast::by_copy),
605605
ty: expr_ty(bcx, in)
606606
};
607607

0 commit comments

Comments
 (0)