Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Oct 31, 2020
1 parent 35e1be6 commit 921828f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,7 @@ proc semSizeof(c: PContext, n: PNode): PNode =
proc semMagic(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
# this is a hotspot in the compiler!
result = n
if result.len > 1 and result[1].kind == nkEarlySemArg: result[1] = result[1][0]
case s.magic # magics that need special treatment
of mAddr:
markUsed(c, n.info, s)
Expand Down Expand Up @@ -2239,7 +2240,6 @@ proc semMagic(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
markUsed(c, n.info, s)
result = semQuoteAst(c, n)
of mAstToStr:
if n[1].kind == nkEarlySemArg: n[1] = n[1][0]
markUsed(c, n.info, s)
checkSonsLen(n, 2, c.config)
result = newStrNodeT(renderTree(n[1], {renderNoComments}), n, c.graph)
Expand Down

0 comments on commit 921828f

Please sign in to comment.