Disable nrvo mir opt
This commit is contained in:
parent
ad6b20bf52
commit
8e2da80fc5
20 changed files with 247 additions and 574 deletions
|
@ -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>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue