fixes #13157
This commit is contained in:
parent
6c2214b7de
commit
107352f9d7
1 changed files with 6 additions and 3 deletions
|
|
@ -2178,7 +2178,10 @@ proc genMagicExpr(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
|||
of mNew: genNew(p, e)
|
||||
of mNewFinalize:
|
||||
if optTinyRtti in p.config.globalOptions:
|
||||
genNew(p, e)
|
||||
var a: TLoc
|
||||
initLocExpr(p, e[1], a)
|
||||
rawGenNew(p, a, nil)
|
||||
gcUsage(p.config, e)
|
||||
else:
|
||||
genNewFinalize(p, e)
|
||||
of mNewSeq: genNewSeq(p, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue