fix #14576 addr of param (including for lent) now works with nim js (#14577)

* fix #14576 addr(param) now works in nim js

* workaround https://github.com/nim-lang/Nim/issues/14578
This commit is contained in:
Timothee Cour 2020-06-06 11:15:24 -07:00 • committed by GitHub
commit 61f2f1f5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 71 additions and 3 deletions

View file

@ -141,6 +141,7 @@ proc genSetNode(p: BProc, n: PNode): Rope =
result = genRawSetData(cs, size)
proc getStorageLoc(n: PNode): TStorageLoc =
## deadcode
case n.kind
of nkSym:
case n.sym.kind