aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index 0911197bd..cb758c002 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -104,10 +104,8 @@ class Compiler {
}
def newRun(implicit ctx: Context): Run = {
- try new Run(this)(rootContext)
- finally {
- ctx.base.reset()
- ctx.runInfo.clear()
- }
+ ctx.base.reset()
+ ctx.runInfo.clear()
+ new Run(this)(rootContext)
}
} \ No newline at end of file