1
Fork 0

Disable nrvo mir opt

This commit is contained in:
Jakob Degen 2023-04-29 19:02:45 -07:00
parent ad6b20bf52
commit 8e2da80fc5
20 changed files with 247 additions and 574 deletions

View file

@ -34,7 +34,8 @@ pub struct RenameReturnPlace;
impl<'tcx> MirPass<'tcx> for RenameReturnPlace {
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
sess.mir_opt_level() > 0
// #111005
sess.mir_opt_level() > 0 && sess.opts.unstable_opts.unsound_mir_opts
}
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut mir::Body<'tcx>) {