Skip to content

Commit 8b60d82

Browse files
committed
Disable splitter
1 parent a47edfa commit 8b60d82

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ class Compiler {
7777
new ExplicitOuter, // Add accessors to outer classes from nested ones.
7878
new ExplicitSelf, // Make references to non-trivial self types explicit as casts
7979
new StringInterpolatorOpt, // Optimizes raw and s string interpolators by rewriting them to string concatentations
80-
new CrossCastAnd, // Normalize selections involving intersection types.
81-
new Splitter) :: // Expand selections involving union types into conditionals
80+
new CrossCastAnd) :: // Normalize selections involving intersection types.
8281
List(new PruneErasedDefs, // Drop erased definitions from scopes and simplify erased expressions
8382
new VCInlineMethods, // Inlines calls to value class methods
8483
new SeqLiterals, // Express vararg arguments as arrays

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ class ElimByName extends TransformByNameApply with InfoTransformer {
4242

4343
override def phaseName: String = ElimByName.name
4444

45-
override def runsAfterGroupsOf = Set(Splitter.name)
46-
// I got errors running this phase in an earlier group, but I did not track them down.
47-
4845
override def changesParents: Boolean = true // Only true for by-names
4946

5047
/** Map `tree` to `tree.apply()` is `ftree` was of ExprType and becomes now a function */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Erasure extends Phase with DenotTransformer {
3636
override def phaseName: String = Erasure.name
3737

3838
/** List of names of phases that should precede this phase */
39-
override def runsAfter = Set(InterceptedMethods.name, Splitter.name, ElimRepeated.name)
39+
override def runsAfter = Set(InterceptedMethods.name, ElimRepeated.name)
4040

4141
override def changesMembers: Boolean = true // the phase adds bridges
4242
override def changesParents: Boolean = true // the phase drops Any

0 commit comments

Comments
 (0)