From 131ae818a1b4b2599d9748384e0346aaaad1fdbf Mon Sep 17 00:00:00 2001 From: Mike Vitousek Date: Wed, 9 Oct 2024 22:09:14 -0700 Subject: [PATCH] [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 --- .../src/HIR/AssertValidMutableRanges.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts b/compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts index 7788140ee64cc..95b11db40c90a 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/HIR/AssertValidMutableRanges.ts @@ -20,6 +20,7 @@ import { export function assertValidMutableRanges(fn: HIRFunction): void { for (const [, block] of fn.body.blocks) { for (const phi of block.phis) { + visitIdentifier(phi.id); for (const [, operand] of phi.operands) { visitIdentifier(operand); }