* fixes #15884

* micro optimization
This commit is contained in:
Andreas Rumpf 2021-06-10 18:19:20 +02:00 • committed by GitHub
commit f65f760dee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 3 deletions

View file

@ -1238,6 +1238,8 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext, fromStmtList = false) =
putWithSpace(g, tkBind, "bind")
gsub(g, n, 0)
of nkCheckedFieldExpr, nkHiddenAddr, nkHiddenDeref, nkStringToCString, nkCStringToString:
if renderIds in g.flags:
putWithSpace(g, tkAddr, $n.kind)
gsub(g, n, 0)
of nkLambda:
putWithSpace(g, tkProc, "proc")