Skip to content

Commit ed99675

Browse files
committed
Rustup
1 parent 84e8585 commit ed99675

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/analyze.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ pub fn analyze<'a, 'tcx: 'a>(fx: &FunctionCx<'a, 'tcx, impl Backend>) -> HashMap
2626
for bb in fx.mir.basic_blocks().iter() {
2727
for stmt in bb.statements.iter() {
2828
match &stmt.kind {
29-
Assign(_, Rvalue::Ref(_, _, place)) => analyze_non_ssa_place(&mut flag_map, place),
29+
Assign(_, rval) => {
30+
match &**rval {
31+
Rvalue::Ref(_, _, place) => analyze_non_ssa_place(&mut flag_map, place),
32+
_ => {}
33+
}
34+
}
3035
_ => {}
3136
}
3237
}

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn trans_stmt<'a, 'tcx: 'a>(
385385
StatementKind::Assign(to_place, rval) => {
386386
let lval = trans_place(fx, to_place);
387387
let dest_layout = lval.layout();
388-
match rval {
388+
match &**rval {
389389
Rvalue::Use(operand) => {
390390
let val = trans_operand(fx, operand);
391391
lval.write_cvalue(fx, val);

0 commit comments

Comments
 (0)