aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/TailRec.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-14 15:34:50 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-14 15:39:32 +0100
commitdb989f9d6552e1f663474d9983199dea00f87864 (patch)
tree5fd7ae114ad179be841ec4a6926a61ff393262f7 /src/dotty/tools/dotc/transform/TailRec.scala
parent670f6024cfbc97f73d1534e10a602e8bdccf0e48 (diff)
downloaddotty-db989f9d6552e1f663474d9983199dea00f87864.tar.gz
dotty-db989f9d6552e1f663474d9983199dea00f87864.tar.bz2
dotty-db989f9d6552e1f663474d9983199dea00f87864.zip
Make Literalize run at new default phase thisTransform.next
Diffstat (limited to 'src/dotty/tools/dotc/transform/TailRec.scala')
-rw-r--r--src/dotty/tools/dotc/transform/TailRec.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/TailRec.scala b/src/dotty/tools/dotc/transform/TailRec.scala
index 57f1336ed..f4e95830d 100644
--- a/src/dotty/tools/dotc/transform/TailRec.scala
+++ b/src/dotty/tools/dotc/transform/TailRec.scala
@@ -62,13 +62,14 @@ import dotty.tools.dotc.transform.TreeTransforms.{TransformerInfo, MiniPhaseTran
* self recursive functions, that's why it's renamed to tailrec
* </p>
*/
-class TailRec extends MiniPhaseTransform with DenotTransformer with FullParameterization {
+class TailRec extends MiniPhaseTransform with DenotTransformer with FullParameterization { thisTransform =>
import dotty.tools.dotc.ast.tpd._
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 labelPrefix = "tailLabel"
final val labelFlags = Flags.Synthetic | Flags.Label