[hir] Skip backedges when handling phis
These will be handled later during Environment.merge, no need to set an empty Set as value.
Sathya Gunasekaran committed
Oct 27, 2022 at 16:43 UTC
a5fb869640c0f35bd6b02e223ec03d7187a80c49
1 file changed
+4
-1
compiler/forget/src/HIR/InferReferenceEffects.ts
+4
-1
@@ -410,7 +410,10 @@ class Environment {
410
values.add(v);
411
}
412
}
413
- this.#variables.set(phi.id.id, values);
413
+
414
+ if (values.size > 0) {
415
+ this.#variables.set(phi.id.id, values);
416
+ }
417
}
418
}
419