Merge pull request #9929 from nc-x/fix-js-regression
tyProc does not require copying in JS codegen
This commit is contained in:
commit
a8b53c97ee
1 changed files with 1 additions and 1 deletions
|
|
@ -945,7 +945,7 @@ proc needsNoCopy(p: PProc; y: PNode): bool =
|
||||||
else:
|
else:
|
||||||
return (mapType(y.typ) != etyBaseIndex and
|
return (mapType(y.typ) != etyBaseIndex and
|
||||||
(skipTypes(y.typ, abstractInst).kind in
|
(skipTypes(y.typ, abstractInst).kind in
|
||||||
{tyRef, tyPtr, tyLent, tyVar, tyCString} + IntegralTypes))
|
{tyRef, tyPtr, tyLent, tyVar, tyCString, tyProc} + IntegralTypes))
|
||||||
return true
|
return true
|
||||||
|
|
||||||
proc genAsgnAux(p: PProc, x, y: PNode, noCopyNeeded: bool) =
|
proc genAsgnAux(p: PProc, x, y: PNode, noCopyNeeded: bool) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue