Switch to changing cp_non_overlap in tform

It was suggested to lower this in MIR instead of ssa, so do that instead.
This commit is contained in:
kadmin 2021-01-23 08:57:04 +00:00
parent d4ae9ff826
commit 217ff6b7ea
10 changed files with 67 additions and 62 deletions

View file

@ -224,7 +224,7 @@ fn check_statement(tcx: TyCtxt<'tcx>, body: &Body<'tcx>, def_id: DefId, statemen
check_operand(tcx, dst, span, body)?;
check_operand(tcx, src, span, body)?;
check_operand(tcx, count, span, body)
},
}
// These are all NOPs
StatementKind::StorageLive(_)
| StatementKind::StorageDead(_)