diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/Run.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala index f2596e929..928a59214 100644 --- a/src/dotty/tools/dotc/Run.scala +++ b/src/dotty/tools/dotc/Run.scala @@ -62,8 +62,7 @@ class Run(comp: Compiler)(implicit ctx: Context) { units = phase.runOn(units) def foreachUnit(op: Context => Unit)(implicit ctx: Context): Unit = for (unit <- units) op(ctx.fresh.setPhase(phase.next).setCompilationUnit(unit)) - if (ctx.settings.Xprint.value.containsPhase(phase) || - (ctx.settings.print.value && phase == ctx.allPhases.last)) + if (ctx.settings.Xprint.value.containsPhase(phase)) foreachUnit(printTree) ctx.informTime(s"$phase ", start) } |