diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim index 4cfaa86b06..af99d45e21 100644 --- a/compiler/vmgen.nim +++ b/compiler/vmgen.nim @@ -1630,11 +1630,20 @@ proc genTypeLit(c: PCtx; t: PType; dest: var TDest) = n.typ = t genLit(c, n, dest) +proc isEmptyBody(n: PNode): bool = + case n.kind + of nkStmtList: + for i in 0..", varargs, discardable.} = + ## foo bar + runnableExamples: discard +static: + let a = c_printf("abc\n")