@samitouri / QOS-React-2 / commits / 131ae818a1

[compiler][ez] Include phi identifier in AssertValidMutableRanges

Summary: Looks like we accidentally skipped validating this identifier. ghstack-source-id: 05964331a812d18430b27dd90c3d5fe9dd8d65d8 Pull Request resolved: https://github.com/facebook/react/pull/31170

Mike Vitousek committed Oct 9, 2024 at 22:09 UTC 131ae818a1b4b2599d9748384e0346aaaad1fdbf
1 file changed +1
compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts
+1
@@ -20,6 +20,7 @@ import {
20 export function assertValidMutableRanges(fn: HIRFunction): void {
21 for (const [, block] of fn.body.blocks) {
22 for (const phi of block.phis) {
23 + visitIdentifier(phi.id);
24 for (const [, operand] of phi.operands) {
25 visitIdentifier(operand);
26 }