1
Fork 0
This commit is contained in:
bjorn3 2018-09-28 18:21:11 +02:00
parent 84e8585c7d
commit ed996759f1
2 changed files with 7 additions and 2 deletions

View file

@ -385,7 +385,7 @@ fn trans_stmt<'a, 'tcx: 'a>(
StatementKind::Assign(to_place, rval) => {
let lval = trans_place(fx, to_place);
let dest_layout = lval.layout();
match rval {
match &**rval {
Rvalue::Use(operand) => {
let val = trans_operand(fx, operand);
lval.write_cvalue(fx, val);