Only run inlining if mir opts are enabled

This commit is contained in:
James Miller 2017-02-09 06:50:08 +13:00 committed by Eduard-Mihai Burtescu
parent f55e92b2a7
commit 3eb26d1f2b

View File

@ -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();