Skip to content

Commit

Permalink
Only run inlining if mir opts are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Aatch authored and eddyb committed Mar 10, 2017
1 parent f55e92b commit 3eb26d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3eb26d1

Please sign in to comment.