diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-11 14:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 14:29:58 +0100 |
commit | a8b53c97ee041bc02862b17a6b7cf70546979a6e (patch) | |
tree | f5af2ec43e066f1267c79e8ba9480991169bdb9b | |
parent | 6924b331416678c6b6e1d400aa8046aeb4f3a5c5 (diff) | |
parent | 685a5544c4f319667c811b04128dc3f8f33a4230 (diff) | |
download | Nim-a8b53c97ee041bc02862b17a6b7cf70546979a6e.tar.gz |
Merge pull request #9929 from nc-x/fix-js-regression
tyProc does not require copying in JS codegen
-rw-r--r-- | compiler/jsgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index a9813f5c5..4d22c4224 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -945,7 +945,7 @@ proc needsNoCopy(p: PProc; y: PNode): bool = else: return (mapType(y.typ) != etyBaseIndex and (skipTypes(y.typ, abstractInst).kind in - {tyRef, tyPtr, tyLent, tyVar, tyCString} + IntegralTypes)) + {tyRef, tyPtr, tyLent, tyVar, tyCString, tyProc} + IntegralTypes)) return true proc genAsgnAux(p: PProc, x, y: PNode, noCopyNeeded: bool) = |