Also visit phis in fallthroughs for DoWhile in LeaveSSA
Oops, forgot about this previously
Lauren Tan committed
Mar 31, 2023 at 17:55 UTC
55793bd96f698b87137124996c46e534be811197
1 file changed
+1
compiler/forget/src/SSA/LeaveSSA.ts
+1
@@ -294,6 +294,7 @@ export function leaveSSA(fn: HIRFunction): void {
294
(terminal.kind === "if" ||
295
terminal.kind === "switch" ||
296
terminal.kind === "while" ||
297
+ terminal.kind === "do-while" ||
298
terminal.kind === "for" ||
299
terminal.kind === "for-of") &&
300
terminal.fallthrough !== null