From 85a96fd719036b9d46c518c92cce4226fdfb34ce Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 15 Oct 2017 21:50:01 +0200 Subject: [PATCH] Run tailrec at phase + 1 It was the only phase that overrode treeTransformPhase directly. Better to standardize on phase + 1. --- compiler/src/dotty/tools/dotc/transform/TailRec.scala | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/transform/TailRec.scala b/compiler/src/dotty/tools/dotc/transform/TailRec.scala index 9c23799530c0..4f6d5dace29b 100644 --- a/compiler/src/dotty/tools/dotc/transform/TailRec.scala +++ b/compiler/src/dotty/tools/dotc/transform/TailRec.scala @@ -70,7 +70,6 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete override def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation = ref override def phaseName: String = "tailrec" - override def treeTransformPhase = thisTransform // TODO Make sure tailrec runs at next phase. final val labelFlags = Flags.Synthetic | Flags.Label