From 6df3fd8d88cc4e28f71792818ab7db5fcd5d195c Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 7 Apr 2026 14:07:37 +0800 Subject: [PATCH] fixes #25695; ORC with large object initialization and heap assignment --- compiler/ccgexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index b517fbd219..414a05a70a 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1892,7 +1892,7 @@ proc genObjConstr(p: BProc, e: PNode, d: var TLoc) = # check if we need to construct the object in a temporary var useTemp = isRef or - (d.k notin {locTemp,locLocalVar,locGlobalVar,locParam,locField}) or + (d.k notin {locTemp,locLocalVar,locGlobalVar,locParam,locField,locExpr}) or (isPartOf(d.lode, e) != arNo) var tmp: TLoc = default(TLoc)