mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Only run inlining if mir opts are enabled
This commit is contained in:
parent
f55e92b2a7
commit
3eb26d1f2b
@ -48,7 +48,7 @@ impl<'tcx> MirMapPass<'tcx> for Inline {
|
||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
hooks: &mut [Box<for<'s> MirPassHook<'s>>]) {
|
||||
|
||||
//if tcx.sess.opts.debugging_opts.mir_opt_level < 2 { return; }
|
||||
if tcx.sess.opts.debugging_opts.mir_opt_level < 2 { return; }
|
||||
|
||||
let _ignore = tcx.dep_graph.in_ignore();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user