mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-14 11:35:52 +00:00
fixes #25695; ORC with large object initialization and heap assignment
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user