fixes #25695; ORC with large object initialization and heap assignment

This commit is contained in:
ringabout
2026-04-07 14:07:37 +08:00
parent f9524861f3
commit 6df3fd8d88

View File

@@ -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)