1
Fork 0

Extract mir_opt_level to a method and use Option to be able to know if the value is provided or not

This commit is contained in:
Santiago Pastorino 2021-03-03 18:19:15 -03:00
parent 409920873c
commit 8152da22a1
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
14 changed files with 34 additions and 29 deletions

View file

@ -52,7 +52,7 @@ crate fn is_enabled(tcx: TyCtxt<'_>) -> bool {
return enabled;
}
tcx.sess.opts.debugging_opts.mir_opt_level >= 2
tcx.sess.mir_opt_level() >= 2
}
impl<'tcx> MirPass<'tcx> for Inline {