Skip to content

Commit 0372beb

Browse files
committed
Drop block early in DropNoEffects
1 parent 1dda6e1 commit 0372beb

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)