mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[hir] Skip backedges when handling phis
These will be handled later during Environment.merge, no need to set an empty Set as value.
This commit is contained in:
1 parent
d9c61bac70
commit
a5fb869640
1 file changed
+4
-1
@@ -410,7 +410,10 @@ class Environment {
|
||||
values.add(v);
|
||||
}
|
||||
}
|
||||
this.#variables.set(phi.id.id, values);
|
||||
|
||||
if (values.size > 0) {
|
||||
this.#variables.set(phi.id.id, values);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user