File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,10 @@ object Semantic {
188
188
def prepare (heapBefore : Heap )(using State , Context ) =
189
189
this .map.keys.foreach {
190
190
case warm : Warm if ! heapBefore.contains(warm) =>
191
- this .map = this .map - warm
192
191
given Env = Env .empty
193
192
given Trace = Trace .empty
194
193
given Promoted = Promoted .empty
195
- warm.ensureObjectExists ().ensureInit()
194
+ warm.ensureFresh ().ensureInit()
196
195
case _ =>
197
196
}
198
197
@@ -698,7 +697,7 @@ object Semantic {
698
697
given Trace = trace1
699
698
// widen the outer to finitize the domain
700
699
val outer = ref match
701
- case warm @ Warm (_, _ : Ref , _, _) =>
700
+ case warm @ Warm (_, _ : Warm , _, _) =>
702
701
// the widened warm object might not exist in the heap
703
702
warm.copy(outer = Cold ).ensureObjectExists().ensureInit()
704
703
case _ => ref
You can’t perform that action at this time.
0 commit comments