From 34cd9c12393814fb437b7b20bc79acee2b1069a5 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 22 Sep 2017 17:01:09 +0200 Subject: [PATCH] Re-enable DropNoEffects after erasure --- compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala b/compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala index c8fc99ff6322..b1ce5ef36c6f 100644 --- a/compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala +++ b/compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala @@ -62,6 +62,7 @@ class Simplify extends MiniPhaseTransform with IdentityDenotTransformer { new Devalify :: new Jumpjump :: new DropGoodCasts :: + new DropNoEffects(this) :: new ConstantFold(this) :: Nil