From eb8e267ff63eec0dd5279186a57d8af59f26c696 Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Fri, 2 Jun 2017 01:22:21 +0200 Subject: improved comment satement support in macros (#5904) --- compiler/vm.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/vm.nim') diff --git a/compiler/vm.nim b/compiler/vm.nim index bc5873ff5..b8e6467b5 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1406,7 +1406,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = if dest.kind in {nkStrLit..nkTripleStrLit} and regs[rb].kind in {rkNode}: dest.strVal = regs[rb].node.strVal - elif dest.kind == nkCommentStmt: + elif dest.kind == nkCommentStmt and regs[rb].kind in {rkNode}: dest.comment = regs[rb].node.strVal else: stackTrace(c, tos, pc, errFieldXNotFound, "strVal") -- cgit 1.4.1-2-gfad0