mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
@@ -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