From 43274bfb9277999b8dcc205731f574c4b9924ac4 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:09:06 +0800 Subject: fixes #23982; codegen regression passing pointer expressions to inline iterators (#23986) fixes #23982 --- compiler/transf.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'compiler/transf.nim') diff --git a/compiler/transf.nim b/compiler/transf.nim index a0a42d98c..7ab4ccae2 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -632,9 +632,11 @@ proc putArgInto(arg: PNode, formal: PType): TPutArgInto = case arg.kind of nkEmpty..nkNilLit: result = paDirectMapping - of nkDotExpr, nkDerefExpr, nkHiddenDeref, nkAddr, nkHiddenAddr: + of nkDotExpr, nkDerefExpr, nkHiddenDeref: result = putArgInto(arg[0], formal) - #if result == paViaIndirection: result = paFastAsgn + of nkAddr, nkHiddenAddr: + result = putArgInto(arg[0], formal) + if result == paViaIndirection: result = paFastAsgn of nkCurly, nkBracket: for i in 0..