Skip to content

Commit 20425bb

Browse files
Merge pull request #3240 from dotty-staging/drop-no-effects-drop-blocks
Drop block early in DropNoEffects
2 parents 4aa13b0 + 0372beb commit 20425bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/localopt/DropNoEffects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class DropNoEffects(val simplifyPhase: Simplify) extends Optimisation {
142142
case _ =>
143143
rec :: args.map(keepOnlySideEffects)
144144
}
145-
Block(prefix, unitLiteral)
145+
seq(prefix, unitLiteral)
146146

147147
case t => t
148148
}

0 commit comments

Comments
 (0)