From 88f1d4f154e046fe7fa881a4eebb782135d7acd9 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 27 Jun 2025 23:17:47 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fixes=20#24997;=20{.global.}=20variab?= =?UTF-8?q?le=20in=20recursive=20function=20(#250=E2=80=A6=20(#25019)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …16)" This reverts commit 1a2ee566e333b265b5276d69ccfc1508ba56a783. --- compiler/cgen.nim | 22 +++++++--------------- tests/global/tglobal3.nim | 14 -------------- 2 files changed, 7 insertions(+), 29 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index ed4e77647d..05c63c4680 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -2170,20 +2170,6 @@ proc addHcrInitGuards(p: BProc, n: PNode, inInitGuard: var bool) = genStmts(p, n) -proc handleProcGlobals(m: BModule) = - var procGlobals: seq[PNode] = move m.g.graph.procGlobals - - for i in 0..