Skip to content

Commit 85a96fd

Browse files
committed
Run tailrec at phase + 1
It was the only phase that overrode treeTransformPhase directly. Better to standardize on phase + 1.
1 parent a886cd4 commit 85a96fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/src/dotty/tools/dotc/transform/TailRec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete
7070
override def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation = ref
7171

7272
override def phaseName: String = "tailrec"
73-
override def treeTransformPhase = thisTransform // TODO Make sure tailrec runs at next phase.
7473

7574
final val labelFlags = Flags.Synthetic | Flags.Label
7675

0 commit comments

Comments
 (0)