mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Always validate MIR after optimizing
This commit is contained in:
parent
e04318e0fa
commit
fe1753af84
@ -191,6 +191,11 @@ pub fn run_passes(
|
||||
}
|
||||
|
||||
body.phase = mir_phase;
|
||||
|
||||
if mir_phase == MirPhase::Optimized {
|
||||
validate::Validator { when: format!("end of phase {:?}", mir_phase) }
|
||||
.run_pass(tcx, source, body);
|
||||
}
|
||||
}
|
||||
|
||||
fn mir_const_qualif(tcx: TyCtxt<'_>, def_id: DefId) -> ConstQualifs {
|
||||
|
Loading…
Reference in New Issue
Block a user